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)
commit6a6c708469c9e10fd87adcc3abff164270538d62
treeed99e2eca3251c5b805287f091b44793f1a9b7b0
parent56faacd04509f0a60ed646473a930fe584f1cb02
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