summaryrefslogtreecommitdiff
path: root/drivers/input
diff options
context:
space:
mode:
authorJosé Expósito <jose.exposito89@gmail.com>2021-12-09 21:18:13 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2021-12-09 21:20:29 -0800
commit3fd6e12a401ead0345e4b7e6a73e117f0713e0c1 (patch)
tree7e6cd802b121e7540861019c2b145fefdd247e3e /drivers/input
parent81e818869be522bc8fa6f7df1b92d7e76537926c (diff)
Input: goodix - fix memory leak in goodix_firmware_upload
Addresses-Coverity-ID: 1493934 ("Resource leak") Signed-off-by: José Expósito <jose.exposito89@gmail.com> Link: https://lore.kernel.org/r/20211208173321.26659-1-jose.exposito89@gmail.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/touchscreen/goodix_fwupload.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/goodix_fwupload.c b/drivers/input/touchscreen/goodix_fwupload.c
index c1e7a2413078..191d4f38d991 100644
--- a/drivers/input/touchscreen/goodix_fwupload.c
+++ b/drivers/input/touchscreen/goodix_fwupload.c
@@ -207,7 +207,7 @@ static int goodix_firmware_upload(struct goodix_ts_data *ts)
error = goodix_reset_no_int_sync(ts);
if (error)
- return error;
+ goto release;
error = goodix_enter_upload_mode(ts->client);
if (error)