From 278e0e70a50aa814408ee0756a520e3d0c54f626 Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Wed, 6 Nov 2013 08:00:18 +0000 Subject: dont leak ccbs in mpii_sas_remove_device. detaching lots (like, 1000) of things could run you out of command slots without this. --- sys/dev/pci/mpii.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/dev/pci') 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 -- cgit v1.2.3