summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2009-09-05 11:59:59 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2009-09-05 11:59:59 +0000
commit492552b942809e767e2c035b24d669f0e0936d11 (patch)
treee0c9e357ec540c1aa90434ca52311092c29b58be /sys
parentab8cbc83cabe090a685fac3c92749e13d84bcb1d (diff)
scsi_done before COMPLETE
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/sdmmc/sdmmc_scsi.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/sdmmc/sdmmc_scsi.c b/sys/dev/sdmmc/sdmmc_scsi.c
index 4147cfefb37..b6b678ed11a 100644
--- a/sys/dev/sdmmc/sdmmc_scsi.c
+++ b/sys/dev/sdmmc/sdmmc_scsi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sdmmc_scsi.c,v 1.17 2009/04/07 16:35:52 blambert Exp $ */
+/* $OpenBSD: sdmmc_scsi.c,v 1.18 2009/09/05 11:59:58 dlg Exp $ */
/*
* Copyright (c) 2006 Uwe Stuehler <uwe@openbsd.org>
@@ -345,6 +345,9 @@ sdmmc_scsi_cmd(struct scsi_xfer *xs)
case TEST_UNIT_READY:
case START_STOP:
case SYNCHRONIZE_CACHE:
+ s = splbio();
+ scsi_done(xs);
+ splx(s);
return COMPLETE;
case READ_CAPACITY: