diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-09 14:13:53 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-09 14:13:53 -0800 |
commit | 969780f8079994f161de991870feba68f49fc3d7 (patch) | |
tree | 2e6664c43be38a6cfdd20338d20385368c1b7a80 /Documentation/i2c/writing-clients | |
parent | ad8f76be48d817b48222411ae16a7dfe257bdb24 (diff) | |
parent | 8750197f0e8f5467297d72e11444cf32f29d790f (diff) | |
download | op-kernel-dev-969780f8079994f161de991870feba68f49fc3d7.zip op-kernel-dev-969780f8079994f161de991870feba68f49fc3d7.tar.gz |
Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/i2c-2.6
Diffstat (limited to 'Documentation/i2c/writing-clients')
-rw-r--r-- | Documentation/i2c/writing-clients | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/i2c/writing-clients b/Documentation/i2c/writing-clients index cff7b65..d19993c 100644 --- a/Documentation/i2c/writing-clients +++ b/Documentation/i2c/writing-clients @@ -412,7 +412,7 @@ For now, you can ignore the `flags' parameter. It is there for future use. release_region(address,FOO_EXTENT); /* SENSORS ONLY END */ ERROR1: - kfree(new_client); + kfree(data); ERROR0: return err; } @@ -443,7 +443,7 @@ much simpler than the attachment code, fortunately! release_region(client->addr,LM78_EXTENT); /* HYBRID SENSORS CHIP ONLY END */ - kfree(data); + kfree(i2c_get_clientdata(client)); return 0; } |