From: Eric W. Biederman Date: Mon, 20 Sep 2010 07:57:03 +0000 (-0700) Subject: sysfs: only access bin file vm_ops with the active lock X-Git-Tag: v2.6.37-rc1~156^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38f49a5132f24d29236820eb5c7dd956e47f94a3;p=pandora-kernel.git sysfs: only access bin file vm_ops with the active lock bb->vm_ops is a cached copy of the vm_ops of the underlying sysfs bin file, which means that after sysfs_bin_remove_file completes it is only longer valid to deference bb->vm_ops. So move all of the tests of bb->vm_ops inside of where we hold the sysfs active lock. Signed-off-by: Eric W. Biederman Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed