diff options
author | Josef Bacik <josef@redhat.com> | 2011-07-13 17:03:50 +0200 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2011-08-01 20:30:45 +0200 |
commit | b783e62d9620445d1ca3de76badf0468cdd329ba (patch) | |
tree | a97b81f62f0b431a4c3e5c4f6346ca890e535cb6 /fs/open.c | |
parent | btrfs: make btrfs_set_root_node void (diff) | |
download | linux-b783e62d9620445d1ca3de76badf0468cdd329ba.tar.xz linux-b783e62d9620445d1ca3de76badf0468cdd329ba.zip |
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 <josef@redhat.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/open.c')
0 files changed, 0 insertions, 0 deletions