Skip to content

Commit 4fd1bd4

Browse files
viviermpe
authored andcommitted
powerpc/pseries: Fix of_node_put() underflow during reconfig remove
As for commit 68baf69 ("powerpc/pseries: Fix of_node_put() underflow during DLPAR remove"), the call to of_node_put() must be removed from pSeries_reconfig_remove_node(). dlpar_detach_node() and pSeries_reconfig_remove_node() both call of_detach_node(), and thus the node should not be released in both cases. Fixes: 0829f6d ("of: device_node kobject lifecycle fixes") Cc: [email protected] # v3.15+ Signed-off-by: Laurent Vivier <[email protected]> Reviewed-by: David Gibson <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
1 parent a25bd72 commit 4fd1bd4

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

arch/powerpc/platforms/pseries/reconfig.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ static int pSeries_reconfig_remove_node(struct device_node *np)
8282

8383
of_detach_node(np);
8484
of_node_put(parent);
85-
of_node_put(np); /* Must decrement the refcount */
8685
return 0;
8786
}
8887

0 commit comments

Comments
 (0)