]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Input: synaptics-rmi4 - fix possible double free
authorPan Bian <bianpan2016@163.com>
Fri, 19 Apr 2019 07:39:00 +0000 (07:39 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 May 2019 17:40:26 +0000 (19:40 +0200)
commitec69b3c91b3bc83e5bdc70c846358e4fbb30c321
treef604bf705f9e4910602abe91b8be92373542a192
parent6a2abf951ed3970db129bf060863662121d4784f
Input: synaptics-rmi4 - fix possible double free

[ Upstream commit bce1a78423961fce676ac65540a31b6ffd179e6d ]

The RMI4 function structure has been released in rmi_register_function
if error occurs. However, it will be released again in the function
rmi_create_function, which may result in a double-free bug.

Signed-off-by: Pan Bian <bianpan2016@163.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/input/rmi4/rmi_driver.c