diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2023-01-26 16:08:19 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-03-11 16:31:46 +0100 |
commit | c34b1c0870323649d45c5074828d7f754dea2673 (patch) | |
tree | e5a51e65d9c855fe3acce96828ebb7627d8f8e05 /arch/m68k | |
parent | eed63e9ab7e8b8bde2f78a716f43cb86c1c7d1ef (diff) | |
download | linux-stable-c34b1c0870323649d45c5074828d7f754dea2673.tar.gz linux-stable-c34b1c0870323649d45c5074828d7f754dea2673.tar.bz2 linux-stable-c34b1c0870323649d45c5074828d7f754dea2673.zip |
net: bcmgenet: Add a check for oversized packets
[ Upstream commit 5c0862c2c962052ed5055220a00ac1cefb92fbcd ]
Occasionnaly we may get oversized packets from the hardware which
exceed the nomimal 2KiB buffer size we allocate SKBs with. Add an early
check which drops the packet to avoid invoking skb_over_panic() and move
on to processing the next packet.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch/m68k')
0 files changed, 0 insertions, 0 deletions