]> Git Repo - qemu.git/commit
vhost-scsi: init backend features earlier
authorMichael S. Tsirkin <[email protected]>
Wed, 3 Sep 2014 09:00:12 +0000 (12:00 +0300)
committerMichael S. Tsirkin <[email protected]>
Wed, 3 Sep 2014 13:41:05 +0000 (16:41 +0300)
commit3a1655fc53a2d0375dc0b8cd358405c2cae288e3
tree1bf3b229829e5a1a81bb43541c995a60cd1428fd
parentb49ae9138d5cadb47fb868297fbcdac8292fb666
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: [email protected]
Acked-by: Paolo Bonzini <[email protected]>
Acked-by: Jason Wang <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
hw/scsi/vhost-scsi.c
This page took 0.022031 seconds and 4 git commands to generate.