From: Jeff Kirsher Date: Fri, 27 Jun 2008 17:59:33 +0000 (-0700) Subject: igb: limit EEPROM access X-Git-Tag: v2.6.27-rc1~969^2~235^2~9 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c3cad754cba4252f5b4e74fb217e3bdd0c03662;p=linux-2.6 igb: limit EEPROM access EEPROM access beyond the base eeprom page is unsupported. Signed-off-by: Jeff Kirsher Signed-off-by: Auke Kok Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/igb/e1000_82575.c b/drivers/net/igb/e1000_82575.c index cda3ec8790..39d44dc072 100644 --- a/drivers/net/igb/e1000_82575.c +++ b/drivers/net/igb/e1000_82575.c @@ -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 */