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:
rwatson 2005-02-22 15:03:25 +00:00
parent 6debb83bcd
commit 266c8910e6

View File

@ -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;