btrfs-progs: more carefully check eb backrefs
authorZach Brown <zab@redhat.com>
Thu, 17 Jan 2013 21:24:35 +0000 (13:24 -0800)
committerZach Brown <zab@redhat.com>
Wed, 6 Feb 2013 00:09:38 +0000 (16:09 -0800)
commit968efc6f988623aff2b4c21af8317ec80836a4b9
treefb153f57b5134c2255e61911954469b619b1f9f7
parentea0ac9416fd13b7e20899d8c7c130e5375171ea6
btrfs-progs: more carefully check eb backrefs

check_owner_ref() could deref a null path node if btrfs_search_slot()
fails or simply doesn't find a tree tall enough to get to the parent of
the desired block.

This was flagged by static analysis warning that btrfs_search_slot()'s
return value wasn't being checked.

Signed-off-by: Zach Brown <zab@redhat.com>
Again: caught by static analysis.
btrfsck.c