diff options
author | Dan Carpenter <dan.carpenter@linaro.org> | 2023-10-29 05:53:36 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-11-20 13:59:34 +0300 |
commit | c8e639f5743cf4b01f8c65e0df075fe4d782b585 (patch) | |
tree | f1d64c1e6cc263c43d94dac8f3050e2f50642709 /drivers/Makefile | |
parent | 1498352ee9305dc89a4fb4e1b178199cd3b19342 (diff) | |
download | linux-c8e639f5743cf4b01f8c65e0df075fe4d782b585.tar.xz |
Input: synaptics-rmi4 - fix use after free in rmi_unregister_function()
[ Upstream commit eb988e46da2e4eae89f5337e047ce372fe33d5b1 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/Makefile')
0 files changed, 0 insertions, 0 deletions