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:
Robert Watson 2005-02-22 15:03:25 +00:00
parent faa0041897
commit 7e2041e0c4

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;