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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent 81e8188 commit 3fd6e12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)