tmp_suning_uos_patched/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: meson: enable level reset support on Meson8b 2018-02-16 15:32:09 +01:00
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: socfpga: use the reset-simple driver 2017-10-18 15:51:02 +02:00
reset-stm32mp1.c reset: stm32mp1: Enable stm32mp1 reset driver 2018-03-27 10:44:04 +02:00
reset-sunxi.c reset: sunxi: use reset-simple driver 2017-10-17 15:35:24 +02:00
reset-ti-sci.c
reset-ti-syscon.c treewide: devm_kzalloc() -> devm_kcalloc() 2018-06-12 16:19:22 -07:00
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