Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b77b0e6b authored by Pan Bian's avatar Pan Bian Committed by Greg Kroah-Hartman
Browse files

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: default avatarPan Bian <bianpan2016@163.com>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent e703f958
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment