Tag: 958a65f205fdc5ce5461d79376073b89acc51b31

[POWERPC] Add missing of_node_put in drivers/macintosh/therm_adt746x.c

Author: Julia Lawall <julia@diku.dk> of_node_put is needed before discarding a value received from of_find_node_by_name, eg in error handling code. The semantic patch that makes the change is as follows: (http://www.emn.fr/x-info/coccinelle/) // @@ struct device_node *n; struct device_node *n1; statement S; identifier f; expression E; constant C; @@ n = of_find_node_by_name(…) … if (!n) S … …

Continue reading