]> git.baikalelectronics.ru Git - kernel.git/commit
bna: fill the magic in bnad_get_eeprom() instead of validating
authorIvan Vecera <ivecera@redhat.com>
Mon, 28 Jul 2014 13:03:52 +0000 (15:03 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Jul 2014 20:56:40 +0000 (13:56 -0700)
commitca5c21cc67af133114d318e11860b6b963736948
treecc106b6b4bf7b6cc5dca7534b2be08b587363a95
parent5c149cf02ddbf8d744abed391d880eb93dbc72a6
bna: fill the magic in bnad_get_eeprom() instead of validating

A driver should fill magic field of ethtool_eeprom struct in .get_eeprom
and validate it in .set_eeprom. The bna incorrectly validates it in both
and this makes its .get_eeprom interface unusable.

Signed-off-by: Ivan Vecera <ivecera@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/brocade/bna/bnad_ethtool.c