projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
532f4ae
)
igb: limit EEPROM access
author
Jeff Kirsher
<jeffrey.t.kirsher@intel.com>
Fri, 27 Jun 2008 17:59:33 +0000
(10:59 -0700)
committer
Jeff Garzik
<jgarzik@redhat.com>
Fri, 4 Jul 2008 12:46:56 +0000
(08:46 -0400)
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>
drivers/net/igb/e1000_82575.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/igb/e1000_82575.c
b/drivers/net/igb/e1000_82575.c
index cda3ec87909037dbf08839bc4426237ba1731e95..39d44dc072e9349200ab39027a253ac512bb251b 100644
(file)
--- 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 */