mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
[CIFS] relinquish fscache cookie before freeing CIFSTconInfo
Doh, fix a use after free bug. Signed-off-by: Suresh Jayaraman <[email protected]> Reviewed-and-Tested-by: Jeff Layton <[email protected]> Signed-off-by: Steve French <[email protected]>
This commit is contained in:
parent
3e4b3e1f68
commit
9f841593ff
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue