Tag: 29e931c02b0e54f3d36b930c118e69b507b4b6ff

powerpc/chrp: Add missing of_node_put in pci.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; statement S1,S2; expression E,E1; expression …

Continue reading