btrfs-progs: check path alloc in corrupt block
authorZach Brown <zab@redhat.com>
Mon, 7 Oct 2013 21:42:54 +0000 (14:42 -0700)
committerChris Mason <chris.mason@fusionio.com>
Wed, 16 Oct 2013 12:23:12 +0000 (08:23 -0400)
commit91f5f22d7d00077b797a99b74f682abdb1b7323d
treeaf113bfdd70a7f209cdb00b3ceb421e8196174c6
parent48d0762f356ebe5d33b93e29377ce38ac17ab360
btrfs-progs: check path alloc in corrupt block

btrfs-corrupt-block added some untested path allocations.  These showed
up in static analysis when they pass their path to btrfs_search_slot()
which unconditionally dereferences the path.

Signed-off-by: Zach Brown <zab@redhat.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
btrfs-corrupt-block.c