aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2010-07-23 16:37:53 -0400
committerSteve French <sfrench@us.ibm.com>2010-08-02 08:40:39 -0400
commit9f841593ff65d2f801c7f80c4ed0955d30103f50 (patch)
tree01fcebaf639b556df3fc9b42149890ba8c12f9ce /fs
parent3e4b3e1f68c10510ec8d3076cffc5729b88f8de6 (diff)
[CIFS] relinquish fscache cookie before freeing CIFSTconInfo
Doh, fix a use after free bug. Signed-off-by: Suresh Jayaraman <sjayaraman@suse.de> Reviewed-and-Tested-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/cifs/connect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
index 52a7646cc7af..d91a6085d55c 100644
--- a/fs/cifs/connect.c
+++ b/fs/cifs/connect.c
@@ -1845,8 +1845,8 @@ cifs_put_tcon(struct cifsTconInfo *tcon)
1845 CIFSSMBTDis(xid, tcon); 1845 CIFSSMBTDis(xid, tcon);
1846 _FreeXid(xid); 1846 _FreeXid(xid);
1847 1847
1848 tconInfoFree(tcon);
1849 cifs_fscache_release_super_cookie(tcon); 1848 cifs_fscache_release_super_cookie(tcon);
1849 tconInfoFree(tcon);
1850 cifs_put_smb_ses(ses); 1850 cifs_put_smb_ses(ses);
1851} 1851}
1852 1852