summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShirish Pargaonkar <shirishp@gmail.com>2008-07-24 16:48:33 +0200
committerSteve French <sfrench@us.ibm.com>2008-07-24 16:48:33 +0200
commit76c510ad2e7d56cfe8f2cc7b23783e5c687cf704 (patch)
tree1bc1f3e3cdda670affccffe3ef0c7be56643f7d0
parent[CIFS] remove checkpatch warning (diff)
downloadlinux-76c510ad2e7d56cfe8f2cc7b23783e5c687cf704.tar.xz
linux-76c510ad2e7d56cfe8f2cc7b23783e5c687cf704.zip
[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>
-rw-r--r--fs/cifs/readdir.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/cifs/readdir.c b/fs/cifs/readdir.c
index 83f306954883..5f40ed3473f5 100644
--- a/fs/cifs/readdir.c
+++ b/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) {