Fix incorrect assertion on the minimum side. ZFS would
trigger this. Reported by: Chris Torek, Allan Jude Approved by: re@ (blanket)
This commit is contained in:
parent
e57a196dbf
commit
6a77884d08
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=255890
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user