[PATCH 2/3] arch/powerpc/sysdev: Add missing of_node_put

2008-01-01 Thread Julia Lawall
From: Julia Lawall <[EMAIL PROTECTED]> The functions of_find_compatible_node and of_find_node_by_type both call of_node_get on their result. So any error handling code thereafter should call of_node_put(np). This is taken care of in the case where there is a goto out, but not when there is a

[PATCH 2/3] arch/powerpc/sysdev: Add missing of_node_put

2008-01-01 Thread Julia Lawall
From: Julia Lawall [EMAIL PROTECTED] The functions of_find_compatible_node and of_find_node_by_type both call of_node_get on their result. So any error handling code thereafter should call of_node_put(np). This is taken care of in the case where there is a goto out, but not when there is a