]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc64cd77c72e211ea42e6cad0868bda50a9288096
treefc3f70522b873aba4cae89c963386a890d24fa5c
parentf7c9d20715320e1bf88934ded7ba48b6bd24f365
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