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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Mar 2012 22:23:42 +0000 (17:23 -0500)
commit73f98eab9b9e0bab492ca06add5657d9e702ddb1
treeea1fd7e0d1cc84812f950b00c30fae6208ce2488
parent1e804aecd7d447d9a939a9376603008af65e52a0
pch_gbe: memory corruption calling pch_gbe_validate_option()

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>
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_param.c