From 2918e4aff57db7cc20502c2155722266be6bb255 Mon Sep 17 00:00:00 2001 From: Joel Sing Date: Sun, 28 Mar 2010 09:08:33 +0000 Subject: 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@ --- sys/dev/softraid.c | 5 ++--- 1 file 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 * Copyright (c) 2008 Chris Kuethe @@ -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; } -- cgit v1.2.3