]> 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)
commit240ee469c7239b6f2a587c215d3177a3f1c3930d
treede2a26727f732c9fe9bafab630f7b054a659cdf1
parentdf569085109ab9937df30d65e7dbf2977a2d2234
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: 0b517ee8ae5f ("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