Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=b127aa8bafb3b5b555ab0e7d6f87cb8a541a3d46
Commit:     b127aa8bafb3b5b555ab0e7d6f87cb8a541a3d46
Parent:     75c6d1410caa6fea861ef3802e8b186f7685f235
Author:     Julia Lawall <[EMAIL PROTECTED]>
AuthorDate: Tue Dec 4 00:33:07 2007 -0800
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Wed Dec 5 05:38:00 2007 -0800

    [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 <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
---
 arch/sparc/kernel/devices.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/arch/sparc/kernel/devices.c b/arch/sparc/kernel/devices.c
index af90a5f..b240b88 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,
                int err = check_cpu_node(dp->node, &cur_inst,
                                         compare, compare_arg,
                                         prom_node, mid);
-               if (!err)
+               if (!err) {
+                       of_node_put(dp);
                        return 0;
+               }
        }
 
        return -ENODEV;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to