lantiq: ltq-ptm: vr9: fix skb handling in ptm_hard_start_xmit()
authorMartin Schiller <ms@dev.tdt.de>
Tue, 21 Jan 2020 09:42:33 +0000 (10:42 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 26 Jan 2020 17:38:17 +0000 (18:38 +0100)
commit996f02e5bafad2815e72821c19d41fb5297e4dad
treedcf57ae3c52e14dda32ada96f358e94f51159d68
parent6e96fd90471a49185bcfe9dcb4844d444674ecab
lantiq: ltq-ptm: vr9: fix skb handling in ptm_hard_start_xmit()

Call skb_orphan(skb) to call the owner's destructor function and make
the skb unowned.

This is necessary to prevent sk_wmem_alloc of a socket from overflowing,
which leads to ENOBUFS errors on application level.

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
package/kernel/lantiq/ltq-ptm/Makefile
package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_vdsl.c