diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2014-09-03 12:00:12 +0300 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2014-09-03 16:41:05 +0300 |
commit | 3a1655fc53a2d0375dc0b8cd358405c2cae288e3 (patch) | |
tree | 1bf3b229829e5a1a81bb43541c995a60cd1428fd /hw/char/grlib_apbuart.c | |
parent | b49ae9138d5cadb47fb868297fbcdac8292fb666 (diff) |
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>
Diffstat (limited to 'hw/char/grlib_apbuart.c')
0 files changed, 0 insertions, 0 deletions