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:
Michael S. Tsirkin <mst@redhat.com>
Loading
Please sign in to comment