When prepending an LCC SNAP header to an atalk outgoing ethernet packet,
allocate the additional mbuf (if needed) using a non-sleeping memory allocation. MFC after: 7 days
This commit is contained in:
parent
6debb83bcd
commit
266c8910e6
@ -230,7 +230,7 @@ ether_output(struct ifnet *ifp, struct mbuf *m,
|
||||
if ( aa->aa_flags & AFA_PHASE2 ) {
|
||||
struct llc llc;
|
||||
|
||||
M_PREPEND(m, LLC_SNAPFRAMELEN, M_TRYWAIT);
|
||||
M_PREPEND(m, LLC_SNAPFRAMELEN, M_DONTWAIT);
|
||||
if (m == NULL)
|
||||
senderr(ENOBUFS);
|
||||
llc.llc_dsap = llc.llc_ssap = LLC_SNAP_LSAP;
|
||||
|
Loading…
Reference in New Issue
Block a user