commit | 134ebfd86b9353a3d98f9f4e93b4e79824a4b49a | [log] [tgz] |
---|---|---|
author | Benjamin Tissoires <benjamin.tissoires@gmail.com> | Tue Dec 04 16:27:54 2012 +0100 |
committer | Jiri Kosina <jkosina@suse.cz> | Wed Dec 05 11:26:36 2012 +0100 |
tree | 303b2518328889258a9becfdca2fad31467b48a4 | |
parent | 9972dcc29cd1fc1b550656eb04496df6dab3dc42 [diff] |
HID: i2c-hid: also call i2c_hid_free_buffers in i2c_hid_remove In the case where the hid driver in charge of handling the hid part of the device (hid-generic for instance) fails at probe, neither i2c_hid_start nor i2c_hid_stop are called. Thus, the buffers allocated in i2c_hid_probe are never freed. Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>