Re: [Qemu-devel] [PATCH v2] virtio-scsi: Fix num_queue input validation

2014-10-31 Thread Paolo Bonzini
On 31/10/2014 04:04, Fam Zheng wrote: > We need to count the ctrlq and eventq, and also cleanup before > returning. Besides, the format string should be unsigned. > > The number could never be less than zero. > > Signed-off-by: Fam Zheng > --- > hw/scsi/virtio-scsi.c | 8 +--- > 1 file chan

[Qemu-devel] [PATCH v2] virtio-scsi: Fix num_queue input validation

2014-10-31 Thread Fam Zheng
We need to count the ctrlq and eventq, and also cleanup before returning. Besides, the format string should be unsigned. The number could never be less than zero. Signed-off-by: Fam Zheng --- hw/scsi/virtio-scsi.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/hw/sc