diff --git a/sys/netatm/atm_cm.c b/sys/netatm/atm_cm.c index 8332e83b2be..aa3b0eacc4d 100644 --- a/sys/netatm/atm_cm.c +++ b/sys/netatm/atm_cm.c @@ -2779,8 +2779,7 @@ atm_cm_cpcs_data(cop, m) * We have to allocate another buffer and tack it * onto the front of the packet */ - KB_ALLOCPKT(n, llcp->v.llc_len, KB_F_NOWAIT, - KB_T_HEADER); + MGETHDR(n, KB_F_NOWAIT, KB_T_HEADER); if (n == 0) { err = ENOMEM; goto done;