From: Josef Bacik Date: Wed, 13 Jul 2011 15:03:50 +0000 (+0000) Subject: Btrfs: don't print the leaf if we had an error X-Git-Tag: v3.1-rc1~82^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b783e62d9620445d1ca3de76badf0468cdd329ba;p=pandora-kernel.git Btrfs: don't print the leaf if we had an error In __btrfs_free_extent we will print the leaf if we fail to find the extent we wanted, but the problem is if we get an error we won't have a leaf so often this leads to a NULL pointer dereference and we lose the error that actually occurred. So only print the leaf if ret > 0, which means we didn't find the item we were looking for but we didn't error either. This way the error is preserved. Signed-off-by: Josef Bacik Signed-off-by: Chris Mason --- Reading git-diff-tree failed