]> git.ipfire.org Git - thirdparty/qemu.git/commit
vhost-scsi: init backend features earlier
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 3 Sep 2014 09:00:12 +0000 (12:00 +0300)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 10 Sep 2014 14:30:57 +0000 (09:30 -0500)
commit34d41c1a20b8763f250543c1e4609c01bed6c427
tree6a92ad250e61ae75052edae6a209a6c954f4721d
parent6f8d05a8f801e09c9cdf9e2146225e826e5d7cc5
vhost-scsi: init backend features earlier

As vhost core can use backend_features during init, clear it earlier to
avoid using uninitialized memory.
This use would be harmless since vhost scsi ignores the result
anyway, but initializing earlier will help prevent valgrind errors,
and make scsi and net behave similarly.

Cc: qemu-stable@nongnu.org
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
(cherry picked from commit 3a1655fc53a2d0375dc0b8cd358405c2cae288e3)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/scsi/vhost-scsi.c