diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2007-09-19 07:11:19 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2007-09-19 07:11:19 +0000 |
commit | 18cdab57cb628eb10d3565fbca42a4b0e9b60cf0 (patch) | |
tree | c0346d3df02e74a3c300f6c1e84bf220f69627c3 | |
parent | 4282e223e1e7e4c9885a517c3d61b00cc04ffed2 (diff) |
In ex_rx_intr() allocate an mbuf cluster if the pkt_len is >= MINCLSIZE.
From FreeBSD
ok dlg@
-rw-r--r-- | sys/dev/isa/if_ex.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/isa/if_ex.c b/sys/dev/isa/if_ex.c index bb03d5c27f7..5d481360360 100644 --- a/sys/dev/isa/if_ex.c +++ b/sys/dev/isa/if_ex.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ex.c,v 1.24 2007/09/19 06:44:57 brad Exp $ */ +/* $OpenBSD: if_ex.c,v 1.25 2007/09/19 07:11:18 brad Exp $ */ /* * Copyright (c) 1997, Donald A. Schmidt * Copyright (c) 1996, Javier Martín Rueda (jmrueda@diatel.upm.es) @@ -671,7 +671,7 @@ ex_rx_intr(struct ex_softc *sc) ipkt->m_pkthdr.len = pkt_len; ipkt->m_len = MHLEN; while (pkt_len > 0) { - if (pkt_len > MINCLSIZE) { + if (pkt_len >= MINCLSIZE) { MCLGET(m, M_DONTWAIT); if (m->m_flags & M_EXT) m->m_len = MCLBYTES; |