From 092aae7ffe9c3a1a59a73e806e373380f1a8a389 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Sun, 4 Apr 2004 07:16:30 +0000 Subject: [PATCH] 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 --- CHANGES | 2 +- kernel/chips/ddcmon.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index db8af9c4..1b294f48 100644 --- a/CHANGES +++ b/CHANGES @@ -33,8 +33,8 @@ ask CVS about it: Modules ds1621, pcf8591: Check for capabilities before using them (Aurelien Jarno) Modules pcf8574, pcf8591: Cleanups + Modules ddcmon, eeprom: Fix bogus init (Ralf Roesch) Module adm1021: Better detection and initialization - Module eeprom: Fix bogus init (Ralf Roesch) Module pca9540: New driver for the Philips PCA9540 Module pc87360-fan: New driver for the National Semiconductor PC87360, PC87363 and PC87364 Super I/O chips diff --git a/kernel/chips/ddcmon.c b/kernel/chips/ddcmon.c index be0babc0..67d30b38 100644 --- a/kernel/chips/ddcmon.c +++ b/kernel/chips/ddcmon.c @@ -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;