2
0
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:
Jean Delvare
2004-03-29 17:25:15 +00:00
parent cbc73ddca1
commit 32b628a4fa

View File

@@ -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;