linux/drivers/net/ethernet/cavium/thunder
Julia Lawall 8c387ebbaf net: thunderx: add missing of_node_put
for_each_child_of_node performs an of_node_get on each iteration, so
a break out of the loop requires an of_node_put.

A simplified version of the semantic patch that fixes this problem is as
follows (http://coccinelle.lip6.fr):

// <smpl>
@@
local idexpression r.n;
expression r,e;
@@

 for_each_child_of_node(r,n) {
   ...
(
   of_node_put(n);
|
   e = n
|
+  of_node_put(n);
?  break;
)
   ...
 }
... when != n
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-10-26 22:08:07 -07:00
..
Makefile
nic_main.c net: thunderx: Incorporate pass2 silicon CPI index configuration changes 2015-10-25 18:13:02 -07:00
nic_reg.h net: thunderx: Incorporate pass2 silicon CPI index configuration changes 2015-10-25 18:13:02 -07:00
nic.h net: thunderx: Support for internal loopback mode 2015-08-30 21:54:12 -07:00
nicvf_ethtool.c net: thunderx: Support for upto 96 queues for a VF 2015-08-30 21:54:12 -07:00
nicvf_main.c net: thunderx: Fix incorrect subsystem devid of VF on pass2 silicon 2015-10-25 18:12:59 -07:00
nicvf_queues.c net: thunderx: Support for upto 96 queues for a VF 2015-08-30 21:54:12 -07:00
nicvf_queues.h net: thunderx: Rework interrupt handling 2015-08-30 21:54:12 -07:00
q_struct.h
thunder_bgx.c net: thunderx: add missing of_node_put 2015-10-26 22:08:07 -07:00
thunder_bgx.h net: thunderx: Support for internal loopback mode 2015-08-30 21:54:12 -07:00