]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: fix oops on failure path
authorDaniel J Blueman <daniel.blueman@gmail.com>
Thu, 23 Jun 2011 15:01:01 +0000 (23:01 +0800)
committerDavid Sterba <dsterba@suse.cz>
Thu, 20 Oct 2011 16:10:50 +0000 (18:10 +0200)
commit94c685ba97ff0b0f470c60cf684f98be952bb8e5
tree7e4a4a164b8153cf463662fbc2ce00f5671f4fa6
parentc378b52bc24aa40f0b0c6c3421b82862f48ca345
btrfs: fix oops on failure path

If lookup_extent_backref fails, path->nodes[0] reasonably could be
null along with other callers of btrfs_print_leaf, so ensure we have a
valid extent buffer before dereferencing.

Signed-off-by: Daniel J Blueman <daniel.blueman@gmail.com>
fs/btrfs/print-tree.c