diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2009-09-05 11:20:25 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2009-09-05 11:20:25 +0000 |
commit | e2a2ecc5c15fa1d6ba1c46ef6a7ccbd56cbfb86a (patch) | |
tree | c2c301ece93de1f693a456a32068270d04f46aa0 /sys | |
parent | 57e27cfb27a3e08d4e46d63107d50c390d599d81 (diff) |
call scsi_done before returning COMPLETE in the stuffup case.
pointed out by miod
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/atapiscsi/atapiscsi.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/atapiscsi/atapiscsi.c b/sys/dev/atapiscsi/atapiscsi.c index 435feee5a67..e45ae328365 100644 --- a/sys/dev/atapiscsi/atapiscsi.c +++ b/sys/dev/atapiscsi/atapiscsi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: atapiscsi.c,v 1.82 2009/02/16 21:19:06 miod Exp $ */ +/* $OpenBSD: atapiscsi.c,v 1.83 2009/09/05 11:20:24 dlg Exp $ */ /* * This code is derived from code with the copyright below. @@ -335,6 +335,9 @@ wdc_atapi_send_cmd(sc_xfer) if (sc_xfer->sc_link->target != 0) { sc_xfer->error = XS_DRIVER_STUFFUP; + s = splbio(); + scsi_done(sc_xfer); + splx(s); return (COMPLETE); } |