diff options
| author | Julia Lawall <[email protected]> | 2007-12-13 15:56:15 -0800 |
|---|---|---|
| committer | Paul Mackerras <[email protected]> | 2007-12-20 17:13:51 +1100 |
| commit | af449c330eb39ae57b139832181d0dcf3b94d806 (patch) | |
| tree | b53c8bb525e5272d07bd853eb5de303ba84c4fbf /include/linux/timerqueue.h | |
| parent | bd4c2edc90c020ba5573da5dbd796fd6ab78692b (diff) | |
[POWERPC] arch/powerpc: Add missing of_node_put
There should be an of_node_put when breaking out of a loop that iterates
over calls to of_find_all_nodes, as this function does an of_node_get on
the value it returns.
This was fixed using the following semantic patch.
(http://www.emn.fr/x-info/coccinelle/)
// <smpl>
@@
type T;
identifier d;
expression e;
@@
T *d;
...
for (d = NULL; (d = of_find_all_nodes(d)) != NULL; )
{... when != of_node_put(d)
when != e = d
(
return d;
|
+ of_node_put(d);
? return ...;
)
...}
// </smpl>
Signed-off-by: Julia Lawall <[email protected]>
Cc: Benjamin Herrenschmidt <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Paul Mackerras <[email protected]>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions