linux-stable/drivers/soc
Julia Lawall fdda0a6adc meson-gx-socinfo: add missing of_node_put after of_device_is_available
Add an of_node_put when a tested device node is not available.

The semantic patch that fixes this problem is as follows
(http://coccinelle.lip6.fr):

// <smpl>
@@
identifier f;
local idexpression e;
expression x;
@@

e = f(...);
... when != of_node_put(e)
    when != x = e
    when != e = x
    when any
if (<+...of_device_is_available(e)...+>) {
  ... when != of_node_put(e)
(
  return e;
|
+ of_node_put(e);
  return ...;
)
}
// </smpl>

Fixes: a9daaba296 ("soc: Add Amlogic SoC Information driver")
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
2019-03-18 09:07:32 -07:00
..
actions
amlogic meson-gx-socinfo: add missing of_node_put after of_device_is_available 2019-03-18 09:07:32 -07:00
atmel
bcm soc: bcm: bcm2835-pm: Make local symbol static 2019-01-31 21:05:58 -08:00
dove
fsl ARM: SoC driver updates for 5.1 2019-03-06 09:41:12 -08:00
gemini
imx
lantiq MIPS: lantiq: Remove separate GPHY Firmware loader 2019-02-25 14:17:10 -08:00
mediatek
qcom soc: qcom: llcc-slice: Fix typos 2019-02-15 16:30:34 -06:00
renesas
rockchip
samsung
sunxi
tegra ARM: SoC driver updates for 5.1 2019-03-06 09:41:12 -08:00
ti soc: ti: knav_dma: Use proper enum in pktdma_init_chan 2019-01-30 10:22:17 -08:00
ux500
versatile
xilinx drivers: soc: xilinx: Add ZynqMP power domain driver 2019-02-12 13:38:16 +01:00
zte
Kconfig
Makefile