* [PATCH 2.6] i2c: writing-client doc update complement
@ 2005-10-31 18:11 Jean Delvare
0 siblings, 0 replies; only message in thread
From: Jean Delvare @ 2005-10-31 18:11 UTC (permalink / raw)
To: Linus Torvalds; +Cc: LKML
Hi Linus,
Can you please apply the following patch to your git tree? Thanks.
* * * * *
My latest update to the writing-clients i2c documentation file was
incomplete, here's the complement.
Large parts of this file are still way out-of-date, but at least now
the memory allocation and freeing instructions are consistent.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
---
Documentation/i2c/writing-clients | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- linux-2.6.14-git.orig/Documentation/i2c/writing-clients 2005-10-31 18:44:21.000000000 +0100
+++ linux-2.6.14-git/Documentation/i2c/writing-clients 2005-10-31 19:07:22.000000000 +0100
@@ -412,7 +412,7 @@
release_region(address,FOO_EXTENT);
/* SENSORS ONLY END */
ERROR1:
- kfree(new_client);
+ kfree(data);
ERROR0:
return err;
}
@@ -443,7 +443,7 @@
release_region(client->addr,LM78_EXTENT);
/* HYBRID SENSORS CHIP ONLY END */
- kfree(data);
+ kfree(i2c_get_clientdata(client));
return 0;
}
--
Jean Delvare
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-10-31 18:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-31 18:11 [PATCH 2.6] i2c: writing-client doc update complement Jean Delvare
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome