cifs: fix potential use-after-free in cifs_oplock_break_put
authorJeff Layton <jlayton@redhat.com>
Wed, 10 Nov 2010 15:19:10 +0000 (10:19 -0500)
committerSteve French <sfrench@us.ibm.com>
Wed, 10 Nov 2010 15:37:17 +0000 (15:37 +0000)
commitebe2e91e000c59aed0300d81815f451c85e0bda6
treefc3f70522b873aba4cae89c963386a890d24fa5c
parentf6614b7bb405a9b35dd28baea989a749492c46b2
cifs: fix potential use-after-free in cifs_oplock_break_put

cfile may very well be freed after the cifsFileInfo_put. Make sure we
have a valid pointer to the superblock for cifs_sb_deactive.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/file.c