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/ed | |
parent | fe657d68f54b7ef837aa6373bb9644911a074c8d (diff) | |
download | src-2a8c860fe3f3bcfc6ba9206f34d067d998d89c7e.tar.gz src-2a8c860fe3f3bcfc6ba9206f34d067d998d89c7e.zip |
Notes
Diffstat (limited to 'sys/dev/ed')
-rw-r--r-- | sys/dev/ed/if_ed.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/dev/ed/if_ed.c b/sys/dev/ed/if_ed.c index 46524dd9d6b8..be9d274aadd6 100644 --- a/sys/dev/ed/if_ed.c +++ b/sys/dev/ed/if_ed.c @@ -1323,10 +1323,7 @@ ed_get_packet(struct ed_softc *sc, bus_size_t buf, u_short len) */ if ((len + 2) > MHLEN) { /* Attach an mbuf cluster */ - MCLGET(m, M_NOWAIT); - - /* Insist on getting a cluster */ - if ((m->m_flags & M_EXT) == 0) { + if (!(MCLGET(m, M_NOWAIT))) { m_freem(m); return; } |