forked from Minki/linux
igb: limit EEPROM access
EEPROM access beyond the base eeprom page is unsupported. Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
This commit is contained in:
parent
532f4aee93
commit
5c3cad754c
@ -171,6 +171,10 @@ static s32 igb_get_invariants_82575(struct e1000_hw *hw)
|
||||
* for setting word_size.
|
||||
*/
|
||||
size += NVM_WORD_SIZE_BASE_SHIFT;
|
||||
|
||||
/* EEPROM access above 16k is unsupported */
|
||||
if (size > 14)
|
||||
size = 14;
|
||||
nvm->word_size = 1 << size;
|
||||
|
||||
/* setup PHY parameters */
|
||||
|
Loading…
Reference in New Issue
Block a user