qemu/iovec: Don't assert if sbytes is zero
commitfacf98ad987a38d97e12511f81375380b407a828
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Tue, 5 Feb 2013 05:57:45 +0000 (5 11:27 +0530)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 6 Feb 2013 14:29:50 +0000 (6 08:29 -0600)
tree653e1b5f4812e702f30adcb63610c19942f887c7
parentddcb73b7782cb6104479503faea04cc224f982b5
qemu/iovec: Don't assert if sbytes is zero

Since these values can possibly be sent from guest (for hw/9pfs), do a sanity check
on them. A 9p write request with 0 bytes caused qemu to abort without this patch

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
util/iov.c