scsi-generic: add missing reset handler
authorBernhard Kohl <bernhard.kohl@nsn.com>
Mon, 6 Sep 2010 14:07:33 +0000 (16:07 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 21 Sep 2010 13:39:43 +0000 (15:39 +0200)
commit3f48a9f629c3bc1d547aafa9bc8ce8833d25b1c1
tree42e20e1629b7803e4a2cfeea4e692e0e742e8363
parent0703deb65ae8004240f857834f8faa76869ccc50
scsi-generic: add missing reset handler

Ensure that pending requests of a SCSI generic device are purged on
system reset. This also avoids calling a NULL function in lsi53c895a.
The lsi code was recently changed to call the .qdev.reset function.

Signed-off-by: Bernhard Kohl <bernhard.kohl@nsn.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/scsi-generic.c