* [PATCH 2.6] Incorrect memset in eeprom.c
@ 2005-05-19 6:24 Jean Delvare
2005-05-19 6:24 ` Greg KH
0 siblings, 1 reply; 2+ messages in thread
From: Jean Delvare @ 2005-05-19 6:24 UTC (permalink / raw)
To: lm-sensors
Quoting Ralf Roesch:
> currently I'm only working with Linux MIPS 2.4 kernel,
> so it would be nice if you could forward the patch for 2.6.
OK, so here we are. Greg, this is the port to 2.6 of Ralf patch that
fixes an incorrect memset while initializing the eeprom driver. Please
apply.
Thanks.
--- linux-2.6.5-rc2/drivers/i2c/chips/eeprom.c.orig Mon Mar 29 20:46:02 2004
+++ linux-2.6.5-rc2/drivers/i2c/chips/eeprom.c Tue Mar 30 20:29:34 2004
@@ -197,7 +197,7 @@
sizeof(struct eeprom_data));
data = (struct eeprom_data *) (new_client + 1);
- memset(data, 0xff, EEPROM_SIZE);
+ memset(data->data, 0xff, EEPROM_SIZE);
i2c_set_clientdata(new_client, data);
new_client->addr = address;
new_client->adapter = adapter;
--
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 2.6] Incorrect memset in eeprom.c
2005-05-19 6:24 [PATCH 2.6] Incorrect memset in eeprom.c Jean Delvare
@ 2005-05-19 6:24 ` Greg KH
0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2005-05-19 6:24 UTC (permalink / raw)
To: lm-sensors
On Tue, Mar 30, 2004 at 08:35:02PM +0200, Jean Delvare wrote:
> Quoting Ralf Roesch:
>
> > currently I'm only working with Linux MIPS 2.4 kernel,
> > so it would be nice if you could forward the patch for 2.6.
>
> OK, so here we are. Greg, this is the port to 2.6 of Ralf patch that
> fixes an incorrect memset while initializing the eeprom driver. Please
> apply.
Applied, thanks.
greg k-h
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-05-19 6:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-19 6:24 [PATCH 2.6] Incorrect memset in eeprom.c Jean Delvare
2005-05-19 6:24 ` Greg KH
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.