diff options
author | Damien Bergamini <damien@cvs.openbsd.org> | 2005-04-01 10:27:09 +0000 |
---|---|---|
committer | Damien Bergamini <damien@cvs.openbsd.org> | 2005-04-01 10:27:09 +0000 |
commit | 4082d6812410636300be23e2010448febcf6e5d9 (patch) | |
tree | b2d03f9a94620793c9887c4cbf5e06cbb91b84f6 /sys | |
parent | 105ff9935581c53417dffcc31d1ff29e36263754 (diff) |
avoid double-free of a mbuf chain on failure.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ic/ral.c | 3 |
1 files changed, 1 insertions, 2 deletions
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; |