Skip to content

Commit

Permalink
[CIFS] relinquish fscache cookie before freeing CIFSTconInfo
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Steve French committed Aug 2, 2010
1 parent 3e4b3e1 commit 9f84159
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/cifs/connect.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 9f84159

Please sign in to comment.