diff options
author | 2008-04-02 13:48:07 -0700 | |
---|---|---|
committer | 2008-04-16 20:41:36 -0400 | |
commit | 8d7c294cae6fd1474d88267810d1965f60a903af (patch) | |
tree | 2d9716923c2ef045ba4309530c6d510959254c17 /drivers/net/e1000e/es2lan.c | |
parent | sc92031: use netdev_alloc_skb (diff) | |
download | linux-8d7c294cae6fd1474d88267810d1965f60a903af.tar.gz linux-8d7c294cae6fd1474d88267810d1965f60a903af.tar.bz2 linux-8d7c294cae6fd1474d88267810d1965f60a903af.zip |
e1000e: limit EEPROM size accesses
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>
Diffstat (limited to 'drivers/net/e1000e/es2lan.c')
-rw-r--r-- | drivers/net/e1000e/es2lan.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/e1000e/es2lan.c b/drivers/net/e1000e/es2lan.c index e3f4aeefeae2..2689e4b83f9b 100644 --- a/drivers/net/e1000e/es2lan.c +++ b/drivers/net/e1000e/es2lan.c @@ -178,6 +178,10 @@ static s32 e1000_init_nvm_params_80003es2lan(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; return 0; |