Revision d2c50b1cd94528aea8c8e9abb4cce81590f32cc4 authored by Wen Yang on 29 September 2019, 06:54:24 UTC, committed by David S. Miller on 01 October 2019, 17:01:58 UTC
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>
1 parent 83c8c3c
History
File Mode Size
.gitignore -rw-r--r-- 24 bytes
Kconfig -rw-r--r-- 4.1 KB
Makefile -rw-r--r-- 1.2 KB
arm_ssp_per_task_plugin.c -rw-r--r-- 2.8 KB
cyc_complexity_plugin.c -rw-r--r-- 1.7 KB
gcc-common.h -rw-r--r-- 23.6 KB
gcc-generate-gimple-pass.h -rw-r--r-- 4.1 KB
gcc-generate-ipa-pass.h -rw-r--r-- 7.4 KB
gcc-generate-rtl-pass.h -rw-r--r-- 4.1 KB
gcc-generate-simple_ipa-pass.h -rw-r--r-- 4.1 KB
gen-random-seed.sh -rw-r--r-- 305 bytes
latent_entropy_plugin.c -rw-r--r-- 16.6 KB
randomize_layout_plugin.c -rw-r--r-- 26.4 KB
sancov_plugin.c -rw-r--r-- 3.8 KB
stackleak_plugin.c -rw-r--r-- 12.6 KB
structleak_plugin.c -rw-r--r-- 7.4 KB

back to top