net: systemport: Add a check for oversized packets
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 28 May 2015 22:24:44 +0000 (15:24 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 31 May 2015 06:51:25 +0000 (23:51 -0700)
commit25977ac77d62b3de19908979ac84c8fd5809de6f
tree329f41c29ccf0528095ee270034511b114b01f21
parentc73b01837eeeba91b9c22c67c6372a6b73f08473
net: systemport: Add a check for oversized packets

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>
drivers/net/ethernet/broadcom/bcmsysport.c