summaryrefslogtreecommitdiff
path: root/sys/kern/kern_physio.c
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2002-05-18 09:34:09 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2002-05-18 09:34:09 +0000
commite96d018d92f404fc9a27c9866f73ece39debb40a (patch)
tree66d84a591a9cc744fcb5701554a95b7dd2aed7a1 /sys/kern/kern_physio.c
parent17b5825d7e1c8b13b01a335c3bd8c3c18ec73927 (diff)
Notes
Diffstat (limited to 'sys/kern/kern_physio.c')
-rw-r--r--sys/kern/kern_physio.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/kern/kern_physio.c b/sys/kern/kern_physio.c
index a83cada3013d..11f3d0c00f1f 100644
--- a/sys/kern/kern_physio.c
+++ b/sys/kern/kern_physio.c
@@ -43,7 +43,6 @@ physio(dev_t dev, struct uio *uio, int ioflag)
int error;
int spl;
caddr_t sa;
- off_t blockno;
u_int iolen;
struct buf *bp;
@@ -93,12 +92,7 @@ physio(dev_t dev, struct uio *uio, int ioflag)
}
bp->b_bufsize = bp->b_bcount;
- blockno = bp->b_offset >> DEV_BSHIFT;
- if ((daddr_t)blockno != blockno) {
- error = EINVAL; /* blockno overflow */
- goto doerror;
- }
- bp->b_blkno = blockno;
+ bp->b_blkno = btodb(bp->b_offset);
if (uio->uio_segflg == UIO_USERSPACE) {
if (!useracc(bp->b_data, bp->b_bufsize,