aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/kernel
diff options
context:
space:
mode:
authorJulia Lawall <julia@diku.dk>2007-12-04 03:33:07 -0500
committerDavid S. Miller <davem@sunset.davemloft.net>2007-12-05 08:38:00 -0500
commitb127aa8bafb3b5b555ab0e7d6f87cb8a541a3d46 (patch)
treedc369ef9ded375563e73614e16d59014ef04eb93 /arch/sparc/kernel
parent75c6d1410caa6fea861ef3802e8b186f7685f235 (diff)
[SPARC]: Add missing of_node_put
There should be an of_node_put when breaking out of a loop that iterates using for_each_node_by_type. Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/kernel')
-rw-r--r--arch/sparc/kernel/devices.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/sparc/kernel/devices.c b/arch/sparc/kernel/devices.c
index af90a5f9ab57..b240b8863fd0 100644
--- a/arch/sparc/kernel/devices.c
+++ b/arch/sparc/kernel/devices.c
@@ -62,8 +62,10 @@ static int __cpu_find_by(int (*compare)(int, int, void *), void *compare_arg,
62 int err = check_cpu_node(dp->node, &cur_inst, 62 int err = check_cpu_node(dp->node, &cur_inst,
63 compare, compare_arg, 63 compare, compare_arg,
64 prom_node, mid); 64 prom_node, mid);
65 if (!err) 65 if (!err) {
66 of_node_put(dp);
66 return 0; 67 return 0;
68 }
67 } 69 }
68 70
69 return -ENODEV; 71 return -ENODEV;