Files
linux/drivers/input/touchscreen
José Expósito f29fe79e02 Input: atmel_mxt_ts - fix double free in mxt_read_info_block
commit 12f247ab59 upstream.

The "id_buf" buffer is stored in "data->raw_info_block" and freed by
"mxt_free_object_table" in case of error.

Return instead of jumping to avoid a double free.

Addresses-Coverity-ID: 1474582 ("Double free")
Fixes: 068bdb67ef ("Input: atmel_mxt_ts - fix the firmware update")
Signed-off-by: José Expósito <jose.exposito89@gmail.com>
Link: https://lore.kernel.org/r/20211212194257.68879-1-jose.exposito89@gmail.com
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-12-29 12:20:46 +01:00
..
2018-06-24 15:20:12 -07:00
2016-01-02 21:08:53 -08:00
2020-10-30 10:38:23 +01:00
2016-03-02 09:40:20 -08:00
2017-02-12 14:55:08 -08:00
2018-11-21 09:19:08 +01:00