svn commit: r255890 - head/usr.sbin/bhyve
Peter Grehan
grehan at FreeBSD.org
Thu Sep 26 16:25:07 UTC 2013
Author: grehan
Date: Thu Sep 26 16:25:06 2013
New Revision: 255890
URL: http://svnweb.freebsd.org/changeset/base/255890
Log:
Fix incorrect assertion on the minimum side. ZFS would
trigger this.
Reported by: Chris Torek, Allan Jude
Approved by: re@ (blanket)
Modified:
head/usr.sbin/bhyve/pci_virtio_block.c
Modified: head/usr.sbin/bhyve/pci_virtio_block.c
==============================================================================
--- head/usr.sbin/bhyve/pci_virtio_block.c Thu Sep 26 16:07:30 2013 (r255889)
+++ head/usr.sbin/bhyve/pci_virtio_block.c Thu Sep 26 16:25:06 2013 (r255890)
@@ -156,7 +156,7 @@ pci_vtblk_proc(struct pci_vtblk_softc *s
* 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));
More information about the svn-src-head
mailing list