aboutsummaryrefslogtreecommitdiff
path: root/include/xen
diff options
context:
space:
mode:
authorAleksander Jan Bajkowski <olek2@wp.pl>2021-05-21 16:45:58 +0200
committerDavid S. Miller <davem@davemloft.net>2021-05-21 14:19:40 -0700
commitc7718ee96dbc2f9c5fc3b578abdf296dd44b9c20 (patch)
tree5e9baa412bfd7615fdf2dac6722001820f831caf /include/xen
parentfc516d3a6aa2c6ffe27d0da8818d13839e023e7e (diff)
net: lantiq: fix memory corruption in RX ring
In a situation where memory allocation or dma mapping fails, an invalid address is programmed into the descriptor. This can lead to memory corruption. If the memory allocation fails, DMA should reuse the previous skb and mapping and drop the packet. This patch also increments rx drop counter. Fixes: fe1a56420cf2 ("net: lantiq: Add Lantiq / Intel VRX200 Ethernet driver ") Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/xen')
0 files changed, 0 insertions, 0 deletions