Re: [PATCH 3/3] firmware: stratix10-svc: fix leaked of_node references

2019-04-17 Thread Nicolas Saenz Julienne
On Wed, 2019-04-17 at 10:44 +0800, Wen Yang wrote: > In stratix10_svc_init function, fw_np is obtained by calling > of_find_node_by_name(), np is obtained by calling > of_find_matching_node(), and the reference counts of those > two device_nodes, fw_np and np, are increased. > But when the

[PATCH 3/3] firmware: stratix10-svc: fix leaked of_node references

2019-04-16 Thread Wen Yang
In stratix10_svc_init function, fw_np is obtained by calling of_find_node_by_name(), np is obtained by calling of_find_matching_node(), and the reference counts of those two device_nodes, fw_np and np, are increased. But when the function exits, only of_node_put is called on np, and fw_np's