diff options
author | Shirish Pargaonkar <shirishp@gmail.com> | 2008-07-24 14:48:33 +0000 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2008-07-24 14:48:33 +0000 |
commit | 76c510ad2e7d56cfe8f2cc7b23783e5c687cf704 (patch) | |
tree | 1bc1f3e3cdda670affccffe3ef0c7be56643f7d0 /fs/cifs | |
parent | 99b1f5b2f6cd2f65cce02c5f63302df5878a5fbc (diff) |
[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>
Diffstat (limited to 'fs/cifs')
-rw-r--r-- | fs/cifs/readdir.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/cifs/readdir.c b/fs/cifs/readdir.c index 83f30695488..5f40ed3473f 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) { |