summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2010-04-09 14:06:02 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2010-04-09 14:06:02 +0000
commit5d832de2cdac67e45e972d0817e7d454aae81005 (patch)
tree65e1e6c15f305773aefb187ba4d77c5054afc2f0 /sys/dev
parent828acf020e500a9a723288e018702a650519d564 (diff)
fix double free in an error path. the midlayer gets the ccb for scsi io
now, so it not our job to free it.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/mpi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/ic/mpi.c b/sys/dev/ic/mpi.c
index 7c9ebf16736..f0a96d2d6ce 100644
--- a/sys/dev/ic/mpi.c
+++ b/sys/dev/ic/mpi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpi.c,v 1.138 2010/04/06 01:24:43 dlg Exp $ */
+/* $OpenBSD: mpi.c,v 1.139 2010/04/09 14:06:01 dlg Exp $ */
/*
* Copyright (c) 2005, 2006, 2009 David Gwynne <dlg@openbsd.org>
@@ -1278,7 +1278,6 @@ mpi_scsi_cmd(struct scsi_xfer *xs)
if (mpi_load_xs(ccb) != 0) {
xs->error = XS_DRIVER_STUFFUP;
- mpi_put_ccb(sc, ccb);
s = splbio();
scsi_done(xs);
splx(s);