Tag: 44ea9c809db6cd373448e77c4be424b534f2051f

drivers/macintosh: Add missing of_node_put in therm_adt746x.c

Author: Nicolas Palix <npalix@diku.dk> of_node_put is needed before discarding a value received from of_find_node_by_name, eg in error handling code or when the device node is no longer used. The semantic match that catches the bug is as follows: (http://www.emn.fr/x-info/coccinelle/) // @r exists@ local idexpression struct device_node *n; position p1, p2; struct device_node *n1; statement S; …

Continue reading