diff options
author | Luis R. Rodriguez <[email protected]> | 2010-01-04 10:40:39 -0500 |
---|---|---|
committer | John W. Linville <[email protected]> | 2010-01-04 16:11:59 -0500 |
commit | 359207c687cc8f4f9845c8dadd0d6dabad44e584 (patch) | |
tree | e1c90ec56246c85a7b171413c11c6a315c03606a /lib/cpu-notifier-error-inject.c | |
parent | 7de3c5dc0ac89b847b00f25d16976c158dc38e4c (diff) |
ath5k: Fix eeprom checksum check for custom sized eeproms
Commit 8bf3d79bc401ca417ccf9fc076d3295d1a71dbf5 enabled EEPROM
checksum checks to avoid bogus bug reports but failed to address
updating the code to consider devices with custom EEPROM sizes.
Devices with custom sized EEPROMs have the upper limit size stuffed
in the EEPROM. Use this as the upper limit instead of the static
default size. In case of a checksum error also provide back the
max size and whether or not this was the default size or a custom
one. If the EEPROM is busted we add a failsafe check to ensure
we don't loop forever or try to read bogus areas of hardware.
This closes bug 14874
http://bugzilla.kernel.org/show_bug.cgi?id=14874
Cc: [email protected]
Cc: David Quan <[email protected]>
Cc: Stephen Beahm <[email protected]>
Reported-by: Joshua Covington <[email protected]>
Signed-off-by: Luis R. Rodriguez <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
Diffstat (limited to 'lib/cpu-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions