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:13:59 +0000 (11:13 -0700)
commit3bf6608abb4e9e8428494798db4dde15cea38c3e
tree1aff3da116ed95c380984a56f394a3425b4a6b38
parentc8e9b34fdc16b7f568237d54002f1f292103b15f
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