btrfs: add checks for sys_chunk_array sizes
authorDavid Sterba <dsterba@suse.cz>
Fri, 31 Oct 2014 17:42:05 +0000 (18:42 +0100)
committerChris Mason <clm@fb.com>
Tue, 3 Feb 2015 03:23:43 +0000 (19:23 -0800)
commitce7fca5f57ed0fcd7e7b3d7b1a3e1791f8e56fa3
tree5b3886f01a02eccdf2927cd195a17f7995fbe6e2
parent75d6ad382bb91f363452119d34238e156589ca2d
btrfs: add checks for sys_chunk_array sizes

Verify that possible minimum and maximum size is set, validity of
contents is checked in btrfs_read_sys_array.

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