aboutsummaryrefslogtreecommitdiff
path: root/drivers/cdx/controller/cdx_controller.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@linaro.org>2023-10-29 02:53:36 +0000
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2023-10-29 02:54:52 +0000
commiteb988e46da2e4eae89f5337e047ce372fe33d5b1 (patch)
treef84c1b37cc169a8cd11ea878841a79d3468e0611 /drivers/cdx/controller/cdx_controller.c
parent290e44badacd8bb62f0f0fddec78381b237b8b83 (diff)
Input: synaptics-rmi4 - fix use after free in rmi_unregister_function()
The put_device() calls rmi_release_function() which frees "fn" so the dereference on the next line "fn->num_of_irqs" is a use after free. Move the put_device() to the end to fix this. Fixes: 24d28e4f1271 ("Input: synaptics-rmi4 - convert irq distribution to irq_domain") Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Link: https://lore.kernel.org/r/706efd36-7561-42f3-adfa-dd1d0bd4f5a1@moroto.mountain Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/cdx/controller/cdx_controller.c')
0 files changed, 0 insertions, 0 deletions