]> git.baikalelectronics.ru Git - kernel.git/commit
net: emaclite: Add error handling for of_address_to_resource()
authorShravya Kumbham <shravya.kumbham@xilinx.com>
Mon, 2 May 2022 07:27:50 +0000 (12:57 +0530)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 3 May 2022 09:07:32 +0000 (11:07 +0200)
commit879fce2d3939c76716d3e34e2634b58a940db818
treede2a26727f732c9fe9bafab630f7b054a659cdf1
parentaf3c6fa668d7309420389624a2127dee48323c13
net: emaclite: Add error handling for of_address_to_resource()

check the return value of of_address_to_resource() and also add
missing of_node_put() for np and npp nodes.

Fixes: 0e111007e778 ("net: emaclite: Support multiple phys connected to one MDIO bus")
Addresses-Coverity: Event check_return value.
Signed-off-by: Shravya Kumbham <shravya.kumbham@xilinx.com>
Signed-off-by: Radhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/xilinx/xilinx_emaclite.c