]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: add check to sysfs handler of label
authorDavid Sterba <dsterba@suse.com>
Tue, 26 Apr 2016 14:03:57 +0000 (16:03 +0200)
committerDavid Sterba <dsterba@suse.com>
Fri, 6 May 2016 13:22:49 +0000 (15:22 +0200)
commit8d4f948d009db42caf7bc9847a9f016198b110fa
tree80dd3ffed00f80e51ae904db05bcfc660ac683af
parent780d8e0e6cd101396d1e4fe94d779d82e7c72eaa
btrfs: add check to sysfs handler of label

Add a sanity check for the fs_info as we will dereference it, similar to
what the 'store features' handler does.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/sysfs.c