Revision d33e0ce2
b/hw/scsi-generic.c | ||
---|---|---|
91 | 91 |
SCSIGenericReq *r = (SCSIGenericReq *)opaque; |
92 | 92 |
SCSIGenericState *s = DO_UPCAST(SCSIGenericState, qdev, r->req.dev); |
93 | 93 |
|
94 |
r->req.aiocb = NULL; |
|
94 | 95 |
s->driver_status = r->io_header.driver_status; |
95 | 96 |
if (s->driver_status & SG_ERR_DRIVER_SENSE) |
96 | 97 |
s->senselen = r->io_header.sb_len_wr; |
... | ... | |
163 | 164 |
SCSIGenericReq *r = (SCSIGenericReq *)opaque; |
164 | 165 |
int len; |
165 | 166 |
|
167 |
r->req.aiocb = NULL; |
|
166 | 168 |
if (ret) { |
167 | 169 |
DPRINTF("IO error ret %d\n", ret); |
168 | 170 |
scsi_command_complete(r, ret); |
... | ... | |
229 | 231 |
SCSIGenericState *s = DO_UPCAST(SCSIGenericState, qdev, r->req.dev); |
230 | 232 |
|
231 | 233 |
DPRINTF("scsi_write_complete() ret = %d\n", ret); |
234 |
r->req.aiocb = NULL; |
|
232 | 235 |
if (ret) { |
233 | 236 |
DPRINTF("IO error\n"); |
234 | 237 |
scsi_command_complete(r, ret); |
Also available in: Unified diff