]> git.baikalelectronics.ru Git - kernel.git/commit
bgmac: add check for oversized packets
authorFelix Fietkau <nbd@openwrt.org>
Tue, 14 Apr 2015 10:07:58 +0000 (12:07 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Apr 2015 18:57:11 +0000 (14:57 -0400)
commit063ea1500ba702f3c3b340a611eafb41523b21d5
treeed99e2eca3251c5b805287f091b44793f1a9b7b0
parenta5ce64d4571760cc4b84712bc182c5f8ff8586be
bgmac: add check for oversized packets

In very rare cases, the MAC can catch an internal buffer that is bigger
than it's supposed to be. Instead of crashing the kernel, simply pass
the buffer back to the hardware

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bgmac.c