diff options
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 cff7b652588a..d19993cc0604 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. | |||
412 | release_region(address,FOO_EXTENT); | 412 | release_region(address,FOO_EXTENT); |
413 | /* SENSORS ONLY END */ | 413 | /* SENSORS ONLY END */ |
414 | ERROR1: | 414 | ERROR1: |
415 | kfree(new_client); | 415 | kfree(data); |
416 | ERROR0: | 416 | ERROR0: |
417 | return err; | 417 | return err; |
418 | } | 418 | } |
@@ -443,7 +443,7 @@ much simpler than the attachment code, fortunately! | |||
443 | release_region(client->addr,LM78_EXTENT); | 443 | release_region(client->addr,LM78_EXTENT); |
444 | /* HYBRID SENSORS CHIP ONLY END */ | 444 | /* HYBRID SENSORS CHIP ONLY END */ |
445 | 445 | ||
446 | kfree(data); | 446 | kfree(i2c_get_clientdata(client)); |
447 | return 0; | 447 | return 0; |
448 | } | 448 | } |
449 | 449 | ||