mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-18 19:12:56 +00:00
sh: intc: Fix use-after-free bug in register_intc_controller()
[ Upstream commit63e72e5519] In the error handling for this function, d is freed without ever removing it from intc_list which would lead to a use after free. To fix this, let's only add it to the list after everything has succeeded. Fixes:2dcec7a988("sh: intc: set_irq_wake() support") Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Reviewed-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> Signed-off-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
fe6cbf0b2a
commit
c3f4f4547f
1 changed files with 1 additions and 1 deletions
Loading…
Add table
Add a link
Reference in a new issue