Commit 88d3c769 authored by Michael S. Tsirkin's avatar Michael S. Tsirkin
Browse files

vhost: last descriptor must have NEXT clear



fetch_buf already guarantees we exit on a descriptor without a NEXT
flag.  Add a BUG_ON statement to make sure we don't overflow the buffer
in case of a bug.

Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent 7844b548
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment