Commit 9f841593 authored by Steve French's avatar Steve French

[CIFS] relinquish fscache cookie before freeing CIFSTconInfo

Doh, fix a use after free bug.
Signed-off-by: default avatarSuresh Jayaraman <sjayaraman@suse.de>
Reviewed-and-Tested-by: default avatarJeff Layton <jlayton@redhat.com>
Signed-off-by: default avatarSteve French <sfrench@us.ibm.com>
parent 3e4b3e1f
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment