diff options
| author | Konstantin Belousov <kib@FreeBSD.org> | 2013-12-10 20:52:31 +0000 |
|---|---|---|
| committer | Konstantin Belousov <kib@FreeBSD.org> | 2013-12-10 20:52:31 +0000 |
| commit | 60b6e19785bb3756084924c621df5ecf70990b04 (patch) | |
| tree | c0bab6ffdfd363d0adf6e87150b07d3926b7272c /sys/dev/md | |
| parent | 9d75ca28f077c52055e8bd740c4b8104426f4a89 (diff) | |
Notes
Diffstat (limited to 'sys/dev/md')
| -rw-r--r-- | sys/dev/md/md.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c index 4030a2ddc90d..817a89db3000 100644 --- a/sys/dev/md/md.c +++ b/sys/dev/md/md.c @@ -746,12 +746,12 @@ mdstart_vnode(struct md_s *sc, struct bio *bp) return (error); } - KASSERT(bp->bio_length <= MAXPHYS, ("bio_length %jd", - (uintmax_t)bp->bio_length)); if ((bp->bio_flags & BIO_UNMAPPED) == 0) { pb = NULL; aiov.iov_base = bp->bio_data; } else { + KASSERT(bp->bio_length <= MAXPHYS, ("bio_length %jd", + (uintmax_t)bp->bio_length)); pb = getpbuf(&md_vnode_pbuf_freecnt); pmap_qenter((vm_offset_t)pb->b_data, bp->bio_ma, bp->bio_ma_n); aiov.iov_base = (void *)((vm_offset_t)pb->b_data + |
