]> git.karo-electronics.de Git - karo-tx-linux.git/commit
pch_gbe: memory corruption calling pch_gbe_validate_option()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 29 Feb 2012 21:17:08 +0000 (21:17 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 22 Apr 2012 22:31:14 +0000 (15:31 -0700)
commitf3c2f735536c9d534a7cb7e3c7f84766b786511d
tree53fbe71c3ee989f9ce5c5e279b26fc11ada72185
parent40e83cb0e1851900b946e7da44220e687570a829
pch_gbe: memory corruption calling pch_gbe_validate_option()

commit 73f98eab9b9e0bab492ca06add5657d9e702ddb1 upstream.

pch_gbe_validate_option() modifies 32 bits of memory but we pass
&hw->phy.autoneg_advertised which only has 16 bits and &hw->mac.fc
which only has 8 bits.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Tomoya MORINAGA <tomoya.rohm@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_param.c