Btrfs-progs: fix segmentation fault of "btrfs check"
authorTsutomu Itoh <t-itoh@jp.fujitsu.com>
Wed, 27 Feb 2013 02:31:54 +0000 (11:31 +0900)
committerDavid Sterba <dsterba@suse.cz>
Wed, 27 Feb 2013 15:42:08 +0000 (16:42 +0100)
commitb7b27b4efb0eb599f89ea664c3acb216876f00fd
treeddc9485f5296f591936fcf73d08adefdee8dfd13
parente929e2947a52bedc91b674202ebff8a4cc21b794
Btrfs-progs: fix segmentation fault of "btrfs check"

Segmentation fault occurred in the following command.

 # btrfs check /dev/sdc7
 No valid Btrfs found on /dev/sdc7
 Segmentation fault (core dumped)

Fix it.

Signed-off-by: Tsutomu Itoh <t-itoh@jp.fujitsu.com>
cmds-check.c