summaryrefslogtreecommitdiffstats
path: root/sys/dev/softraid.c
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2010-03-28 09:08:32 +0000
committerjsing <jsing@openbsd.org>2010-03-28 09:08:32 +0000
commit4c0f553456230c0ea681d70e3e569b116cb9d2c8 (patch)
tree608004979f44d87befc7223e35cc1cc1c92882fd /sys/dev/softraid.c
parentRemove uninitialized nitems and use npss as $deity intended. (diff)
downloadwireguard-openbsd-4c0f553456230c0ea681d70e3e569b116cb9d2c8.tar.xz
wireguard-openbsd-4c0f553456230c0ea681d70e3e569b116cb9d2c8.zip
Replace a scsi_done() call with sr_scsi_done() which fixes a missing
splx() call. Found by jsg@ using the clang static analyser. ok marco@
Diffstat (limited to 'sys/dev/softraid.c')
-rw-r--r--sys/dev/softraid.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/softraid.c b/sys/dev/softraid.c
index ecfc135cc7c..9c0aee7ea98 100644
--- a/sys/dev/softraid.c
+++ b/sys/dev/softraid.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: softraid.c,v 1.198 2010/03/27 16:20:29 jsing Exp $ */
+/* $OpenBSD: softraid.c,v 1.199 2010/03/28 09:08:32 jsing Exp $ */
/*
* Copyright (c) 2007, 2008, 2009 Marco Peereboom <marco@peereboom.us>
* Copyright (c) 2008 Chris Kuethe <ckuethe@openbsd.org>
@@ -1870,8 +1870,7 @@ sr_scsi_cmd(struct scsi_xfer *xs)
if ((wu = sr_wu_get(sd, 0)) == NULL) {
DNPRINTF(SR_D_CMD, "%s: sr_scsi_cmd no wu\n", DEVNAME(sc));
xs->error = XS_NO_CCB;
- s = splbio();
- scsi_done(xs);
+ sr_scsi_done(sd, xs);
return;
}