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)
commit66ac9fe7bacf9fa76c472efc7a7aaa590c7bce6a
tree80dd3ffed00f80e51ae904db05bcfc660ac683af
parentee6111386a1b304f8bf589d36810d53e3b27ee20
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