mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-08-31 14:25:39 +00:00
Fix bogus memset. Reported by Ralf Roesch.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2401 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
@@ -202,7 +202,7 @@ int eeprom_detect(struct i2c_adapter *adapter, int address,
|
|||||||
}
|
}
|
||||||
|
|
||||||
data = (struct eeprom_data *) (new_client + 1);
|
data = (struct eeprom_data *) (new_client + 1);
|
||||||
memset(data, 0xff, EEPROM_SIZE);
|
memset(data->data, 0xff, EEPROM_SIZE);
|
||||||
new_client->addr = address;
|
new_client->addr = address;
|
||||||
new_client->data = data;
|
new_client->data = data;
|
||||||
new_client->adapter = adapter;
|
new_client->adapter = adapter;
|
||||||
|
Reference in New Issue
Block a user