Skip to content

Commit 3fd6e12

Browse files
JoseExpositodtor
authored andcommitted
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>
1 parent 81e8188 commit 3fd6e12

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/input/touchscreen/goodix_fwupload.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ static int goodix_firmware_upload(struct goodix_ts_data *ts)
207207

208208
error = goodix_reset_no_int_sync(ts);
209209
if (error)
210-
return error;
210+
goto release;
211211

212212
error = goodix_enter_upload_mode(ts->client);
213213
if (error)

0 commit comments

Comments
 (0)