diff options
author | Dan Carpenter <dan.carpenter@linaro.org> | 2023-10-29 02:53:36 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-11-20 11:52:15 +0100 |
commit | 7082b1fb5321037bc11ba1cf2d7ed23c6b2b521f (patch) | |
tree | be4701f2ddf971b68740d548c71bf2996b1a25f1 /drivers/watchdog | |
parent | f8225c3c6555cd4d9439141bafd8e5e587af998f (diff) | |
download | linux-7082b1fb5321037bc11ba1cf2d7ed23c6b2b521f.tar.gz linux-7082b1fb5321037bc11ba1cf2d7ed23c6b2b521f.tar.bz2 linux-7082b1fb5321037bc11ba1cf2d7ed23c6b2b521f.zip |
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/watchdog')
0 files changed, 0 insertions, 0 deletions