summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bhyve/pci_virtio_block.c
diff options
context:
space:
mode:
authorgrehan <grehan@FreeBSD.org>2013-09-26 16:25:06 +0000
committergrehan <grehan@FreeBSD.org>2013-09-26 16:25:06 +0000
commit128d4995ee48664437da1ecd72611ce47ea5ab2a (patch)
tree84b46e07f0058f15dc4354a78c456329dd99b61c /usr.sbin/bhyve/pci_virtio_block.c
parent2c3609418a47565f4ccf2b71c7f97b1c46f5047b (diff)
downloadFreeBSD-src-128d4995ee48664437da1ecd72611ce47ea5ab2a.zip
FreeBSD-src-128d4995ee48664437da1ecd72611ce47ea5ab2a.tar.gz
Fix incorrect assertion on the minimum side. ZFS would
trigger this. Reported by: Chris Torek, Allan Jude Approved by: re@ (blanket)
Diffstat (limited to 'usr.sbin/bhyve/pci_virtio_block.c')
-rw-r--r--usr.sbin/bhyve/pci_virtio_block.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/bhyve/pci_virtio_block.c b/usr.sbin/bhyve/pci_virtio_block.c
index 76f681b..529cd42 100644
--- a/usr.sbin/bhyve/pci_virtio_block.c
+++ b/usr.sbin/bhyve/pci_virtio_block.c
@@ -156,7 +156,7 @@ pci_vtblk_proc(struct pci_vtblk_softc *sc, struct vqueue_info *vq)
* XXX - note - this fails on crash dump, which does a
* VIRTIO_BLK_T_FLUSH with a zero transfer length
*/
- assert (n >= 3 && n <= VTBLK_MAXSEGS + 2);
+ assert(n >= 2 && n <= VTBLK_MAXSEGS + 2);
assert((flags[0] & VRING_DESC_F_WRITE) == 0);
assert(iov[0].iov_len == sizeof(struct virtio_blk_hdr));
OpenPOWER on IntegriCloud