qemu-irix/hw/scsi
Stefan Hajnoczi 5e690bb974 vhost-scsi: fix k->set_guest_notifiers() NULL dereference
Coverity picked up a copy-paste bug.  In vhost_scsi_start() we check for
!k->set_guest_notifiers and error out.  The check probably got copied
but instead of erroring we actually use the function pointer!

Cc: Nicholas Bellinger <nab@linux-iscsi.org>
Cc: Asias He <asias@redhat.com>
Cc: qemu-stable@nongnu.org
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 0e22a2d189)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
2013-06-18 12:59:44 -05:00
..
Makefile.objs vhost-scsi: new device supporting the tcm_vhost Linux kernel module 2013-04-19 16:18:11 +02:00
esp-pci.c scsi: add bus_name parameter to scsi_bus_new. 2013-05-03 12:05:15 -05:00
esp.c scsi: add bus_name parameter to scsi_bus_new. 2013-05-03 12:05:15 -05:00
lsi53c895a.c scsi: add bus_name parameter to scsi_bus_new. 2013-05-03 12:05:15 -05:00
megasas.c scsi: add bus_name parameter to scsi_bus_new. 2013-05-03 12:05:15 -05:00
mfi.h hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
scsi-bus.c scsi: add bus_name parameter to scsi_bus_new. 2013-05-03 12:05:15 -05:00
scsi-disk.c scsi-disk: scsi-block device for scsi pass-through should not be removable 2013-06-18 12:58:11 -05:00
scsi-generic.c scsi-generic: check the return value of bdrv_aio_ioctl in execute_command 2013-06-18 12:57:30 -05:00
spapr_vscsi.c scsi: add bus_name parameter to scsi_bus_new. 2013-05-03 12:05:15 -05:00
srp.h hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
vhost-scsi.c vhost-scsi: fix k->set_guest_notifiers() NULL dereference 2013-06-18 12:59:44 -05:00
viosrp.h hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
virtio-scsi.c virtio-scsi: fix the command line compatibility. 2013-05-03 12:05:15 -05:00
vmw_pvscsi.c scsi: add bus_name parameter to scsi_bus_new. 2013-05-03 12:05:15 -05:00
vmw_pvscsi.h scsi: VMWare PVSCSI paravirtual device implementation 2013-04-19 10:44:17 +02:00