aboutsummaryrefslogtreecommitdiff
path: root/sys/ufs/ffs/ffs_softdep.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/ufs/ffs/ffs_softdep.c')
-rw-r--r--sys/ufs/ffs/ffs_softdep.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/ufs/ffs/ffs_softdep.c b/sys/ufs/ffs/ffs_softdep.c
index 391d7b79dc87..76a022346e72 100644
--- a/sys/ufs/ffs/ffs_softdep.c
+++ b/sys/ufs/ffs/ffs_softdep.c
@@ -11036,6 +11036,9 @@ softdep_disk_write_complete(bp)
struct buf *sbp;
ump = softdep_bp_to_mp(bp);
+ KASSERT(LIST_EMPTY(&bp->b_dep) || ump != NULL,
+ ("softdep_disk_write_complete: softdep_bp_to_mp returned NULL "
+ "with outstanding dependencies for buffer %p", bp));
if (ump == NULL)
return;