diff options
| author | Robert Watson <rwatson@FreeBSD.org> | 2015-01-06 12:59:37 +0000 |
|---|---|---|
| committer | Robert Watson <rwatson@FreeBSD.org> | 2015-01-06 12:59:37 +0000 |
| commit | 2a8c860fe3f3bcfc6ba9206f34d067d998d89c7e (patch) | |
| tree | 8da641e0473d723ab1cc2e5a5772cb1eed6e4d6f /sys/dev/sbni | |
| parent | fe657d68f54b7ef837aa6373bb9644911a074c8d (diff) | |
Notes
Diffstat (limited to 'sys/dev/sbni')
| -rw-r--r-- | sys/dev/sbni/if_sbni.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/sbni/if_sbni.c b/sys/dev/sbni/if_sbni.c index c459dedcc7ce..03200ef8d798 100644 --- a/sys/dev/sbni/if_sbni.c +++ b/sys/dev/sbni/if_sbni.c @@ -878,8 +878,7 @@ get_rx_buf(struct sbni_softc *sc) */ if (ETHER_MAX_LEN + 2 > MHLEN) { /* Attach an mbuf cluster */ - MCLGET(m, M_NOWAIT); - if ((m->m_flags & M_EXT) == 0) { + if (!(MCLGET(m, M_NOWAIT))) { m_freem(m); return (0); } |
