Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Sep 2013 16:25:07 +0000 (UTC)
From:      Peter Grehan <grehan@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r255890 - head/usr.sbin/bhyve
Message-ID:  <201309261625.r8QGP7rA023888@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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));



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309261625.r8QGP7rA023888>