btrfs: add more checks to btrfs_read_sys_array
authorDavid Sterba <dsterba@suse.cz>
Wed, 5 Nov 2014 14:24:51 +0000 (15:24 +0100)
committerChris Mason <clm@fb.com>
Tue, 3 Feb 2015 03:24:39 +0000 (19:24 -0800)
Verify that the sys_array has enough bytes to read the next item.

Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/volumes.c

Simple merge