]> git.baikalelectronics.ru Git - kernel.git/commit
e1000e: don't return half-read eeprom on error
authorKok, Auke <auke-jan.h.kok@intel.com>
Tue, 29 Apr 2008 18:18:55 +0000 (11:18 -0700)
committerJeff Garzik <jgarzik@redhat.com>
Tue, 6 May 2008 16:38:02 +0000 (12:38 -0400)
commit84dcd96762ad92dfaa91c3f46344229ca0f59f1b
treebf71b460b90b059bfc1192c001f676fd02a8afc2
parentbb02ee6d7ac0095ae995083269d5bf78851c97c8
e1000e: don't return half-read eeprom on error

On a read error, e1000e might have returned uninitialized block of
eeprom data back to userspace. The convention is that 0xff is "empty",
so mark the entire eeprom as empty in case of an error.

Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/e1000e/ethtool.c