Skip to content

Commit

Permalink
7572 vioif panic: qe->qe_indirect_next < qe->qe_queue->vq_indirect_num
Browse files Browse the repository at this point in the history
Reviewed by: Dan Kimmel <dan.kimmel@delphix.com>
Reviewed by: Prachetaa Raghavan <prachetaa.raghavan@delphix.com>
Reviewed by: Sebastien Roy <sebastien.roy@delphix.com>
Reviewed by: George Wilson <george.wilson@delphix.com>
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Igor Kozhukhov <ikozhukhov@gmail.com>
Approved by: Dan McDonald <danmcd@omniti.com>
  • Loading branch information
dankimmel authored and ahrens committed Apr 14, 2017
1 parent 8a981c3 commit 20ee958
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion usr/src/uts/common/io/virtio/virtio.c
Expand Up @@ -22,6 +22,7 @@
/*
* Copyright 2013 Nexenta Systems, Inc. All rights reserved.
* Copyright 2012 Alexey Zaytsev <alexey.zaytsev@gmail.com>
* Copyright (c) 2016 by Delphix. All rights reserved.
*/

/* Based on the NetBSD virtio driver by Minoura Makoto. */
Expand Down Expand Up @@ -644,7 +645,7 @@ virtio_ve_set(struct vq_entry *qe, uint64_t paddr, uint32_t len,
unsigned int
virtio_ve_indirect_available(struct vq_entry *qe)
{
return (qe->qe_queue->vq_indirect_num - (qe->qe_indirect_next - 1));
return (qe->qe_queue->vq_indirect_num - qe->qe_indirect_next);
}

void
Expand Down

0 comments on commit 20ee958

Please sign in to comment.