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)
commitbce1a78423961fce676ac65540a31b6ffd179e6d
tree8201f766f8de098ddcc1aa48c338b7e9a4cffae9
parentf06eba72274788db6a43012a05a99915c0283aef
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