From 4082d6812410636300be23e2010448febcf6e5d9 Mon Sep 17 00:00:00 2001 From: Damien Bergamini Date: Fri, 1 Apr 2005 10:27:09 +0000 Subject: avoid double-free of a mbuf chain on failure. --- sys/dev/ic/ral.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sys') diff --git a/sys/dev/ic/ral.c b/sys/dev/ic/ral.c index d2a852fc1c1..14222f8ba3c 100644 --- a/sys/dev/ic/ral.c +++ b/sys/dev/ic/ral.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ral.c,v 1.41 2005/04/01 09:49:01 damien Exp $ */ +/* $OpenBSD: ral.c,v 1.42 2005/04/01 10:27:08 damien Exp $ */ /*- * Copyright (c) 2005 @@ -715,7 +715,6 @@ ral_alloc_rx_ring(struct ral_softc *sc, struct ral_rx_ring *ring, int count) MCLGET(data->m, M_DONTWAIT); if (!(data->m->m_flags & M_EXT)) { - m_freem(data->m); printf("%s: could not allocate rx mbuf cluster\n", sc->sc_dev.dv_xname); error = ENOMEM; -- cgit v1.2.3