virtio-scsi: do not crash on adding buffers to the event queue
commit619d7ae952bb61ec27ec21fe4a383a8d4dd4cd70
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 12 Jun 2012 16:37:25 +0000 (12 18:37 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 2 Jul 2012 09:27:00 +0000 (2 11:27 +0200)
treeee97bc4c2a8b74b3a451774d41364ffff3dde413
parente8f943c3bcc2a578bfd30b825f2ebaf345c63a09
virtio-scsi: do not crash on adding buffers to the event queue

The event queue is not supported yet and the handler does not
have to do much anyway when buffers are added.  However, the
handler is called unconditionally by the virtio layer, and this
results in a crash as soon as buffers are added to the event
queue because we pass NULL.

Reported-by: Bryan Venteicher <bryanv@daemoninthecloset.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/virtio-scsi.c