mirror of
https://github.com/torvalds/linux.git
synced 2024-12-26 12:52:30 +00:00
915b96191f
This function is implemented as though the function of_get_next_child does not increment the reference count of its result, but actually it does. Thus the patch adds of_node_put in error handling code and drops a call to of_node_get. The semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // <smpl> @r exists@ local idexpression x; expression E1; position p1,p2; @@ x@p1 = of_get_next_child(...); ... when != x = E1 of_node_get@p2(x) @script:python@ p1 << r.p1; p2 << r.p2; @@ cocci.print_main("call",p1) cocci.print_secs("get",p2) // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: Grant Likely <grant.likely@secretlab.ca> |
||
---|---|---|
.. | ||
efika.c | ||
Kconfig | ||
lite5200_pm.c | ||
lite5200_sleep.S | ||
lite5200.c | ||
Makefile | ||
media5200.c | ||
mpc52xx_common.c | ||
mpc52xx_gpio.c | ||
mpc52xx_gpt.c | ||
mpc52xx_lpbfifo.c | ||
mpc52xx_pci.c | ||
mpc52xx_pic.c | ||
mpc52xx_pm.c | ||
mpc52xx_sleep.S | ||
mpc5200_simple.c |