Repository navigation
Commit b783e62
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>1 parent bf5f32e commit b783e62
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4462 | 4462 | | |
4463 | 4463 | | |
4464 | 4464 | | |
4465 | | - | |
| 4465 | + | |
| 4466 | + | |
| 4467 | + | |
4466 | 4468 | | |
4467 | 4469 | | |
4468 | 4470 | | |
| |||
0 commit comments