mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-06 15:51:34 +00:00
fix off-by-one bug with 2.6 eeprom handling
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2165 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
270bd02b4f
commit
ee719c4963
1 file changed
+1
-1
+1
-1
@@ -309,7 +309,7 @@ int sensors_read_proc(sensors_chip_name name, int feature, double *value)
|
||||
if (! strcmp(name.prefix, "eeprom")){
|
||||
strcat(n, "eeprom");
|
||||
if ((f = fopen(n, "r")) != NULL) {
|
||||
eepromoffset = 1 +
|
||||
eepromoffset =
|
||||
(the_feature->offset / sizeof(long)) +
|
||||
(16 * (the_feature->sysctl - EEPROM_SYSCTL1));
|
||||
for(i = 0; i <= eepromoffset; i++)
|
||||
|
||||
Reference in new issue
Block a user