kernel_optimize_test/drivers/reset
Geert Uytterhoeven b790c8ea55 reset: Fix potential use-after-free in __of_reset_control_get()
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>
2018-10-08 15:25:21 +02:00
..
hisilicon
sti
tegra
core.c reset: Fix potential use-after-free in __of_reset_control_get() 2018-10-08 15:25:21 +02:00
Kconfig reset: qcom: PDC Global (Power Domain Controller) reset controller 2018-10-05 10:33:44 +02:00
Makefile reset: qcom: PDC Global (Power Domain Controller) reset controller 2018-10-05 10:33:44 +02:00
reset-a10sr.c
reset-ath79.c headers: separate linux/mod_devicetable.h from linux/platform_device.h 2018-07-07 17:52:26 +02:00
reset-axs10x.c headers: separate linux/mod_devicetable.h from linux/platform_device.h 2018-07-07 17:52:26 +02:00
reset-berlin.c
reset-hsdk.c
reset-imx7.c ARM: SoC: late updates 2018-08-25 14:12:36 -07:00
reset-lantiq.c
reset-lpc18xx.c
reset-meson-audio-arb.c reset: meson: add meson audio arb driver 2018-07-20 18:17:31 +02:00
reset-meson.c
reset-oxnas.c
reset-pistachio.c
reset-qcom-aoss.c reset: qcom: AOSS (always on subsystem) reset controller 2018-07-16 12:15:51 +02:00
reset-qcom-pdc.c reset: qcom: PDC Global (Power Domain Controller) reset controller 2018-10-05 10:33:44 +02:00
reset-simple.c reset: simple: export reset_simple_ops to be referred from modules 2018-07-16 12:15:54 +02:00
reset-simple.h
reset-stm32mp1.c
reset-sunxi.c
reset-ti-sci.c
reset-ti-syscon.c
reset-uniphier-usb3.c reset: uniphier: add USB3 core reset control 2018-07-16 12:15:55 +02:00
reset-uniphier.c reset: uniphier: add reset control support for SPI 2018-07-19 11:19:47 +02:00
reset-zynq.c