]> www.infradead.org Git - users/jedix/linux-maple.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)
committerChris Mason <chris.mason@oracle.com>
Wed, 16 Nov 2011 02:20:44 +0000 (21:20 -0500)
commitd2e57e4ffd2c782fea7fb87b55bce8982d2c211a
treeece1fd59a8a6ef436f55a243eb367f9c5bb33142
parentc20e9f0ef241f2cb00f576987e083389b58e8287
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>
(cherry picked from commit 068132bad1de70f85f5f6d12c36d64f8f7848d92)
fs/btrfs/print-tree.c