summaryrefslogtreecommitdiffstats
path: root/module/zfs/bptree.c
diff options
context:
space:
mode:
Diffstat (limited to 'module/zfs/bptree.c')
-rw-r--r--module/zfs/bptree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/bptree.c b/module/zfs/bptree.c
index 9f62d7b91..c0edc9d76 100644
--- a/module/zfs/bptree.c
+++ b/module/zfs/bptree.c
@@ -156,7 +156,7 @@ bptree_visit_cb(spa_t *spa, zilog_t *zilog, const blkptr_t *bp,
int err;
struct bptree_args *ba = arg;
- if (BP_IS_HOLE(bp))
+ if (bp == NULL || BP_IS_HOLE(bp))
return (0);
err = ba->ba_func(ba->ba_arg, bp, ba->ba_tx);