aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorFlorian Fainelli2023-01-26 16:08:19 -0800
committerGreg Kroah-Hartman2023-03-10 09:33:51 +0100
commit5f56767fb5f2df875b6553e08dbec6a45431c988 (patch)
tree938ab0067752f6487471546d2b6a7338f5001055 /arch
parent94b28dc12f407ff2b0726d1545b7c653d85a2df3 (diff)
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')
0 files changed, 0 insertions, 0 deletions