From: Julia Lawall Date: Thu, 13 Dec 2007 23:56:16 +0000 (-0800) Subject: [POWERPC] cell/cbe_regs.c: Add missing of_node_put X-Git-Tag: v2.6.25-rc1~1131^2~224 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1fe58a875e4bb08125c657b1b91ac515d2bdbcbe;p=pandora-kernel.git [POWERPC] cell/cbe_regs.c: 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. This was detected and fixed using the following semantic patch. (http://www.emn.fr/x-info/coccinelle/) // @@ identifier d; type T; expression e; iterator for_each_node_by_type; @@ T *d; ... for_each_node_by_type(d,...) {... when != of_node_put(d) when != e = d ( return d; | + of_node_put(d); ? return ...; ) ...} // Signed-off-by: Julia Lawall Cc: Christian Krafft Cc: Benjamin Herrenschmidt Cc: David Erb Signed-off-by: Andrew Morton Signed-off-by: Paul Mackerras --- Reading git-diff-tree failed