From: Shirish Pargaonkar Date: Thu, 24 Jul 2008 14:48:33 +0000 (+0000) Subject: [CIFS] Fix possible double free if search immediately after search rewind fails X-Git-Tag: v2.6.27-rc1~86^2~3 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=76c510ad2e7d56cfe8f2cc7b23783e5c687cf704;p=linux-2.6-omap-h63xx.git [CIFS] Fix possible double free if search immediately after search rewind fails Signed-off-by: Shirish Pargaonkar Signed-off-by: Steve French --- 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) {