summaryrefslogtreecommitdiffstats
path: root/module/zfs/dmu_diff.c
diff options
context:
space:
mode:
Diffstat (limited to 'module/zfs/dmu_diff.c')
-rw-r--r--module/zfs/dmu_diff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/dmu_diff.c b/module/zfs/dmu_diff.c
index 91415d0d2..7665d1ca5 100644
--- a/module/zfs/dmu_diff.c
+++ b/module/zfs/dmu_diff.c
@@ -115,7 +115,7 @@ diff_cb(spa_t *spa, zilog_t *zilog, const blkptr_t *bp,
if (issig(JUSTLOOKING) && issig(FORREAL))
return (SET_ERROR(EINTR));
- if (zb->zb_object != DMU_META_DNODE_OBJECT)
+ if (bp == NULL || zb->zb_object != DMU_META_DNODE_OBJECT)
return (0);
if (BP_IS_HOLE(bp)) {