summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-10-18 11:08:33 +0000
committerphk <phk@FreeBSD.org>2003-10-18 11:08:33 +0000
commit4f15f97a051d93249a5465a3992e79ebc8ecde37 (patch)
treeacd121fcd462842cb32a2bde4ff5f4945b15602f /sys
parentbd34a4ab189d192d53549e416a9c37d08928db72 (diff)
downloadFreeBSD-src-4f15f97a051d93249a5465a3992e79ebc8ecde37.zip
FreeBSD-src-4f15f97a051d93249a5465a3992e79ebc8ecde37.tar.gz
Initialize b_offset before calling VOP_SPECSTRATEGY()
Diffstat (limited to 'sys')
-rw-r--r--sys/fs/cd9660/cd9660_vnops.c1
-rw-r--r--sys/isofs/cd9660/cd9660_vnops.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/sys/fs/cd9660/cd9660_vnops.c b/sys/fs/cd9660/cd9660_vnops.c
index c18b664..d227e4a 100644
--- a/sys/fs/cd9660/cd9660_vnops.c
+++ b/sys/fs/cd9660/cd9660_vnops.c
@@ -737,6 +737,7 @@ cd9660_strategy(ap)
}
vp = ip->i_devvp;
bp->b_dev = vp->v_rdev;
+ bp->b_offset = dbtob(bp->b_blkno);
VOP_SPECSTRATEGY(vp, bp);
return (0);
}
diff --git a/sys/isofs/cd9660/cd9660_vnops.c b/sys/isofs/cd9660/cd9660_vnops.c
index c18b664..d227e4a 100644
--- a/sys/isofs/cd9660/cd9660_vnops.c
+++ b/sys/isofs/cd9660/cd9660_vnops.c
@@ -737,6 +737,7 @@ cd9660_strategy(ap)
}
vp = ip->i_devvp;
bp->b_dev = vp->v_rdev;
+ bp->b_offset = dbtob(bp->b_blkno);
VOP_SPECSTRATEGY(vp, bp);
return (0);
}
OpenPOWER on IntegriCloud