Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

[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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
}