Tag: 915b96191f01d53e30d74083dcf4aebfb5b7ce10

powerpc/5200: efika.c: Add of_node_put to avoid memory leak

Author: Julia Lawall <julia@diku.dk> This function is implemented as though the function of_get_next_child does not increment the reference count of its result, but actually it does. Thus the patch adds of_node_put in error handling code and drops a call to of_node_get. The semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @r exists@ …

Continue reading