Re: [PATCH] net: mscc: ocelot: add missing of_node_put after calling of_get_child_by_name

2019-10-16 Thread Wen Yang
On 2019/10/2 1:02 上午, David Miller wrote: From: Wen Yang Date: Sun, 29 Sep 2019 14:54:24 +0800 of_node_put needs to be called when the device node which is got from of_get_child_by_name finished using. In both cases of success and failure, we need to release 'ports', so clean up the code

Re: [PATCH] net: mscc: ocelot: add missing of_node_put after calling of_get_child_by_name

2019-10-01 Thread David Miller
From: Wen Yang Date: Sun, 29 Sep 2019 14:54:24 +0800 > of_node_put needs to be called when the device node which is got > from of_get_child_by_name finished using. > In both cases of success and failure, we need to release 'ports', > so clean up the code using goto. > > fixes: a556c76adc05