浏览代码

[CIFS] Fix possible double free if search immediately after search rewind fails

Signed-off-by: Shirish Pargaonkar <shirishp@us.ibm.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Shirish Pargaonkar 17 年之前
父节点
当前提交
76c510ad2e
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      fs/cifs/readdir.c

+ 1 - 0
fs/cifs/readdir.c

@@ -690,6 +690,7 @@ static int find_cifs_entry(const int xid, struct cifsTconInfo *pTcon,
 			else
 				cifs_buf_release(cifsFile->srch_inf.
 						ntwrk_buf_start);
+			cifsFile->srch_inf.ntwrk_buf_start = NULL;
 		}
 		rc = initiate_cifs_search(xid, file);
 		if (rc) {