mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-09 16:21:51 +00:00
Fix bogus memset (similar to a recent fix to the eeprom driver).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2410 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
bc84ffa4a1
commit
092aae7ffe
2 files changed
+2
-2
No files matched your search
@@ -223,7 +223,7 @@ int ddcmon_detect(struct i2c_adapter *adapter, int address,
|
||||
}
|
||||
|
||||
data = (struct ddcmon_data *) (new_client + 1);
|
||||
memset(data, 0xff, DDCMON_SIZE);
|
||||
memset(data->data, 0xff, DDCMON_SIZE);
|
||||
new_client->addr = address;
|
||||
new_client->data = data;
|
||||
new_client->adapter = adapter;
|
||||
|
||||
Reference in new issue
Block a user