virtio-scsi: avoid cancelling uninitialized work items
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 4 Jun 2014 11:34:56 +0000 (13:34 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Jul 2014 18:18:23 +0000 (11:18 -0700)
commitb63cf1accc078931f5f9bb2c8ac23365db388ee0
treec1dfbee9f16dcedc1a2e48087e445f0f5599355d
parent9d2da49acf75f2c43847500f279fd68d802aabd4
virtio-scsi: avoid cancelling uninitialized work items

commit cdda0e5acbb78f7b777049f8c27899e5c5bb368f upstream.

Calling the workqueue interface on uninitialized work items isn't a
good idea even if they're zeroed. It's not failing catastrophically only
through happy accidents.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/virtio_scsi.c