net: bcmgenet: correctly pad short packets
authorFlorian Fainelli <f.fainelli@gmail.com>
Tue, 22 Jul 2014 18:01:52 +0000 (11:01 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Jul 2014 02:59:19 +0000 (19:59 -0700)
commit474ea9cafc459976827a477f2c30eaf6313cb7c1
treed3a3e6cb9bf04397c8ae7f45a6a36276d2a0f956
parent1be9a950c646c9092fb3618197f7b6bfb50e82aa
net: bcmgenet: correctly pad short packets

Packets shorter than ETH_ZLEN were not padded with zeroes, hence leaking
potentially sensitive information. This bug has been present since the
driver got accepted in commit 1c1008c793fa46703a2fee469f4235e1c7984333
("net: bcmgenet: add main driver file").

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/genet/bcmgenet.c