]> git.baikalelectronics.ru Git - kernel.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)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 24 Apr 2019 16:33:37 +0000 (16:33 +0000)
commitabb1f804d0e4148459d2149c97f42c10ec26ac22
tree8201f766f8de098ddcc1aa48c338b7e9a4cffae9
parent62f5ab2f96e6bb60aa8f36af34e56b73a6df912f
Input: synaptics-rmi4 - fix possible double free

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>
drivers/input/rmi4/rmi_driver.c