diff options
| author | 2019-09-29 14:54:24 +0800 | |
|---|---|---|
| committer | 2019-10-01 10:01:58 -0700 | |
| commit | d2c50b1cd94528aea8c8e9abb4cce81590f32cc4 (patch) | |
| tree | 711d4ed6cedd7f807ba0e38310129db4398fb681 /include/linux/phy/git:/ssh:/git@git.zx2c4.com | |
| parent | net: sched: cbs: Avoid division by zero when calculating the port rate (diff) | |
net: mscc: ocelot: add missing of_node_put after calling of_get_child_by_name
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 ("net: mscc: Add initial Ocelot switch support")
Signed-off-by: Wen Yang <wenyang@linux.alibaba.com>
Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>
Cc: Microchip Linux Driver Support <UNGLinuxDriver@microchip.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: netdev@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/phy/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
