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)
commite3540eab29e1b2260bc4b9b3979a49a00e3e3af8
treedb22ad2525c71e04922ca49b92416dd92687f7ea
parent1ffb22cf8c322bbfea6b35fe23d025841b49fede
btrfs: add more checks to btrfs_read_sys_array

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