summaryrefslogtreecommitdiff
path: root/sys/dev/pci/mpii.c
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2013-11-06 08:00:18 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2013-11-06 08:00:18 +0000
commit278e0e70a50aa814408ee0756a520e3d0c54f626 (patch)
tree089b2141cc1668468720a37bd957aea34df115f6 /sys/dev/pci/mpii.c
parentb216caba55c7e384b7e349d5cb1939ab88059fc3 (diff)
dont leak ccbs in mpii_sas_remove_device. detaching lots (like, 1000) of
things could run you out of command slots without this.
Diffstat (limited to 'sys/dev/pci/mpii.c')
-rw-r--r--sys/dev/pci/mpii.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/pci/mpii.c b/sys/dev/pci/mpii.c
index cf664b5d539..a4244cf8b8c 100644
--- a/sys/dev/pci/mpii.c
+++ b/sys/dev/pci/mpii.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpii.c,v 1.70 2013/10/25 16:21:35 mikeb Exp $ */
+/* $OpenBSD: mpii.c,v 1.71 2013/11/06 08:00:17 dlg Exp $ */
/*
* Copyright (c) 2010, 2012 Mike Belopuhov
* Copyright (c) 2009 James Giannoules
@@ -1896,6 +1896,8 @@ mpii_sas_remove_device(struct mpii_softc *sc, u_int16_t handle)
mpii_wait(sc, ccb);
if (ccb->ccb_rcb != NULL)
mpii_push_reply(sc, ccb->ccb_rcb);
+
+ scsi_io_put(&sc->sc_iopool, ccb);
}
int