From f516173c52491b80046d64c24a8b6a5fa8b466c6 Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Mon, 9 Apr 2012 04:37:14 +0200 Subject: [PATCH] pst(4): Add a missing contigfree(). --- sys/dev/raid/pst/pst-iop.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/dev/raid/pst/pst-iop.c b/sys/dev/raid/pst/pst-iop.c index 1299815985..be4ef8b682 100644 --- a/sys/dev/raid/pst/pst-iop.c +++ b/sys/dev/raid/pst/pst-iop.c @@ -26,7 +26,6 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * $FreeBSD: src/sys/dev/pst/pst-iop.c,v 1.2.2.1 2002/08/18 12:32:36 sos Exp $ - * $DragonFly: src/sys/dev/raid/pst/pst-iop.c,v 1.11 2006/12/22 23:26:24 swildner Exp $ */ #include @@ -326,7 +325,10 @@ iop_get_util_params(struct iop_softc *sc, int target, int operation, int group) if (!(reply = contigmalloc(PAGE_SIZE, M_PSTIOP, M_NOWAIT | M_ZERO, 0x00010000, 0xFFFFFFFF, sizeof(u_int32_t), 0))) + { + contigfree(param, PAGE_SIZE, M_PSTIOP); return NULL; + } mfa = iop_get_mfa(sc); msg = (struct i2o_util_get_param_message *)(sc->ibase + mfa); -- 2.41.0