diff options
author | 2007-09-19 07:11:18 +0000 | |
---|---|---|
committer | 2007-09-19 07:11:18 +0000 | |
commit | bde4cf68d000177678bfc0e1e35883c3466a7fd2 (patch) | |
tree | 5e62127bed9fa6d9fd523a9c35acd9b0e9a2384b /sys/dev/isa/if_ex.c | |
parent | sprinkle a few tabs on ex_ioctl() to make things easier on the eyes. (diff) | |
download | wireguard-openbsd-bde4cf68d000177678bfc0e1e35883c3466a7fd2.tar.xz wireguard-openbsd-bde4cf68d000177678bfc0e1e35883c3466a7fd2.zip |
In ex_rx_intr() allocate an mbuf cluster if the pkt_len is >= MINCLSIZE.
From FreeBSD
ok dlg@
Diffstat (limited to 'sys/dev/isa/if_ex.c')
-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; |