]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: check for private_data before trying to put it
authorJeff Layton <jlayton@redhat.com>
Tue, 5 Apr 2011 23:23:47 +0000 (16:23 -0700)
committerSteve French <sfrench@us.ibm.com>
Tue, 12 Apr 2011 00:39:05 +0000 (00:39 +0000)
commit08bb10822df6487fb6fc3fdcafb2d1c8b1151927
tree85464ab3649def5954b04139c5854ae593db0703
parenta49ec2f89ef7d5107cf62938f259cf1ba29f99d3
cifs: check for private_data before trying to put it

cifs_close doesn't check that the filp->private_data is non-NULL before
trying to put it. That can cause an oops in certain error conditions
that can occur on open or lookup before the private_data is set.

Reported-by: Ben Greear <greearb@candelatech.com>
CC: Stable <stable@kernel.org>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/file.c