diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-08-21 18:22:44 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-08-21 18:22:44 +0000 |
| commit | 60767bf422aceba0cf762ec1755c5c7f75556f0d (patch) | |
| tree | c4cf0cd57644d8091f64c6f001ee883a1d9dcc26 /sys/kern/kern_physio.c | |
| parent | a761a4653a59927feed63d520cbf1f7516136768 (diff) | |
Notes
Diffstat (limited to 'sys/kern/kern_physio.c')
| -rw-r--r-- | sys/kern/kern_physio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_physio.c b/sys/kern/kern_physio.c index aae8ee980ed4..a5a81722d5b3 100644 --- a/sys/kern/kern_physio.c +++ b/sys/kern/kern_physio.c @@ -16,7 +16,7 @@ * 4. Modifications may be freely made to this file if the above conditions * are met. * - * $Id: kern_physio.c,v 1.36 1999/08/14 11:40:42 phk Exp $ + * $Id: kern_physio.c,v 1.37 1999/08/21 06:48:16 phk Exp $ */ #include <sys/param.h> @@ -97,11 +97,11 @@ physio(bp, dev, rw, minp, uio) */ bp->b_saveaddr = sa; blockno = uio->uio_offset >> DEV_BSHIFT; - bp->b_blkno = blockno; - if (bp->b_blkno != blockno) { + if ((daddr_t)blockno != blockno) { error = EINVAL; goto doerror; } + bp->b_blkno = blockno; bp->b_offset = uio->uio_offset; if (uio->uio_segflg == UIO_USERSPACE) { |
