]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Jun 2016 01:18:54 +0000 (18:18 -0700)
commit1a0608e8df73a6b6902d5d154ab3abb546b43d8e
tree6d5709b872767a7ff3efa57e272ac508f3660d71
parent296f8da334a009ea2ec8112c2a1ac318872eff87
btrfs: add check to sysfs handler of label

commit 66ac9fe7bacf9fa76c472efc7a7aaa590c7bce6a upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/btrfs/sysfs.c