]> git.baikalelectronics.ru Git - kernel.git/commit
lantiq: net: fix duplicated skb in rx descriptor ring
authorAleksander Jan Bajkowski <olek2@wp.pl>
Tue, 15 Jun 2021 20:42:57 +0000 (22:42 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Jun 2021 21:17:19 +0000 (14:17 -0700)
commitaaabf04caa7889d031cc6ded6761b908f21760a1
tree45325f3393b8edead592ea30119c475be3c3daa2
parent0c4487316ef6cbb4ee833128caf2e4fdfad877a7
lantiq: net: fix duplicated skb in rx descriptor ring

The previous commit didn't fix the bug properly. By mistake, it replaces
the pointer of the next skb in the descriptor ring instead of the current
one. As a result, the two descriptors are assigned the same SKB. The error
is seen during the iperf test when skb_put tries to insert a second packet
and exceeds the available buffer.

Fixes: 5ceeb3023448 ("net: lantiq: fix memory corruption in RX ring ")
Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/lantiq_xrx200.c