summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/aquantia
diff options
context:
space:
mode:
authorSzymon Heidrich <szymon.heidrich@gmail.com>2023-03-16 14:05:40 +0300
committerJakub Kicinski <kuba@kernel.org>2023-03-17 03:27:56 +0300
commit43ffe6caccc7a1bb9d7442fbab521efbf6c1378c (patch)
tree668f81dedad0452d7c1ce003dea75747d1fa9601 /drivers/net/ethernet/aquantia
parent8a2618e14f81604a9b6ad305d57e0c8da939cd65 (diff)
downloadlinux-43ffe6caccc7a1bb9d7442fbab521efbf6c1378c.tar.xz
net: usb: smsc75xx: Move packet length check to prevent kernel panic in skb_pull
Packet length check needs to be located after size and align_count calculation to prevent kernel panic in skb_pull() in case rx_cmd_a & RX_CMD_A_RED evaluates to true. Fixes: d8b228318935 ("net: usb: smsc75xx: Limit packet length to skb->len") Signed-off-by: Szymon Heidrich <szymon.heidrich@gmail.com> Link: https://lore.kernel.org/r/20230316110540.77531-1-szymon.heidrich@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/aquantia')
0 files changed, 0 insertions, 0 deletions