commit | 7ee2eaa3641827a9ecdffa190cde31846024d2e3 | [log] [tgz] |
---|---|---|
author | Axel Lin <axel.lin@ingics.com> | Sun Sep 11 12:09:01 2016 +0800 |
committer | Jiri Kosina <jkosina@suse.cz> | Mon Sep 19 14:42:22 2016 +0200 |
tree | 7c6bdf3921858ee77cbe7c63a7ccc62843d7383e | |
parent | b490a8537df60d449199e162417da74ee9262515 [diff] |
HID: alps: Fix memory leak A kfree(readbuf) call was missed if hid_hw_raw_request() fails, fix it. Also avoid mixing direct return with goto in the error paths. Signed-off-by: Axel Lin <axel.lin@ingics.com> Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>