]> git.proxmox.com Git - qemu.git/commit
lsi: use qdev_reset_all
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 2 Jul 2012 15:03:55 +0000 (17:03 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 26 Jul 2012 15:44:08 +0000 (17:44 +0200)
commit2f0772c5b4818d4b2078be9dace0036d1030faee
tree2f6af49673ddcc80bf27e96fafa12b9d10a5f606
parente2b06058f7a0812729b95bcd4600238165323220
lsi: use qdev_reset_all

By first resetting the devices, lsi_soft_reset will find the queue
already cleared so there is no need to do that forcibly (which may also
leak SCSIRequests, and/or worse due to dangling references to the
lsi_request in the hba_private field).

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/lsi53c895a.c