android_kernel_sony_sdm845/drivers/reset
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Geert Uytterhoeven 1012e97fb0 reset: Fix potential use-after-free in __of_reset_control_get()
[ Upstream commit b790c8ea5593d6dc3580adfad8e117eeb56af874 ]

Calling of_node_put() decreases the reference count of a device tree
object, and may free some data.

However, the of_phandle_args structure embedding it is passed to
reset_controller_dev.of_xlate() after that, so it may still be accessed.

Move the call to of_node_put() down to fix this.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
[p.zabel@pengutronix.de: moved of_node_put after mutex_unlock]
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-11-25 09:53:42 +01:00
..
hisilicon
sti
core.c reset: Fix potential use-after-free in __of_reset_control_get() 2019-11-25 09:53:42 +01:00
Kconfig
Makefile
reset-ath79.c
reset-berlin.c
reset-lpc18xx.c
reset-meson.c
reset-oxnas.c
reset-pistachio.c
reset-socfpga.c
reset-stm32.c
reset-sunxi.c
reset-ti-syscon.c
reset-uniphier.c
reset-zynq.c