projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e4b3e1
)
[CIFS] relinquish fscache cookie before freeing CIFSTconInfo
author
Steve French
<sfrench@us.ibm.com>
Fri, 23 Jul 2010 20:37:53 +0000
(20:37 +0000)
committer
Steve French
<sfrench@us.ibm.com>
Mon, 2 Aug 2010 12:40:39 +0000
(12:40 +0000)
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>
fs/cifs/connect.c
patch
|
blob
|
history
diff --git
a/fs/cifs/connect.c
b/fs/cifs/connect.c
index 52a7646cc7af5419f8e95dd1e16e41ae2904b3bb..d91a6085d55c6f4294006256564386bfa93635c0 100644
(file)
--- a/
fs/cifs/connect.c
+++ b/
fs/cifs/connect.c
@@
-1845,8
+1845,8
@@
cifs_put_tcon(struct cifsTconInfo *tcon)
CIFSSMBTDis(xid, tcon);
_FreeXid(xid);
- tconInfoFree(tcon);
cifs_fscache_release_super_cookie(tcon);
+ tconInfoFree(tcon);
cifs_put_smb_ses(ses);
}