From 24cc9156fe9b5c2e779cc33134e9821873057333 Mon Sep 17 00:00:00 2001 From: phk Date: Sun, 15 Jun 2003 18:53:00 +0000 Subject: Add the same KASSERT to all VOP_STRATEGY and VOP_SPECSTRATEGY implementations to check that the buffer points to the correct vnode. --- sys/fs/cd9660/cd9660_vnops.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/fs/cd9660') diff --git a/sys/fs/cd9660/cd9660_vnops.c b/sys/fs/cd9660/cd9660_vnops.c index 69b41a9..bf95bf7 100644 --- a/sys/fs/cd9660/cd9660_vnops.c +++ b/sys/fs/cd9660/cd9660_vnops.c @@ -718,6 +718,8 @@ cd9660_strategy(ap) struct vnode *vp = bp->b_vp; struct iso_node *ip; + KASSERT(ap->a_vp == ap->a_bp->b_vp, ("%s(%p != %p)", + __func__, ap->a_vp, ap->a_bp->b_vp)); ip = VTOI(vp); if (vp->v_type == VBLK || vp->v_type == VCHR) panic("cd9660_strategy: spec"); -- cgit v1.1