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