lapd: use l2tp_msgb_alloc() instead of msgb_alloc()

This commit is contained in:
Alexander Couzens 2016-11-08 11:38:47 +01:00
parent 283c2c3257
commit 388a33ca9c
1 changed files with 1 additions and 1 deletions

View File

@ -191,7 +191,7 @@ int lapd_ehdlc_to_lapd(struct l2tpd_instance *l2i, struct l2tpd_session *l2s, st
return 0;
}
send_msg = msgb_alloc(length + 128, "lapd frame");
send_msg = l2tp_msgb_alloc();
memcpy(msgb_data(send_msg), msgb_data(msg), length);
msgb_pull(msg, length);
msgb_put(send_msg, length);