CC: [email protected] BCC: [email protected] CC: [email protected] TO: Saurabh Sengar <[email protected]> CC: Michal Simek <[email protected]> CC: Hyun Kwon <[email protected]> CC: Laurent Pinchart <[email protected]> CC: David Airlie <[email protected]> CC: Daniel Vetter <[email protected]> CC: [email protected] CC: [email protected]
From: kernel test robot <[email protected]> drivers/gpu/drm/xlnx/xlnx_sdi.c:1311:1-23: WARNING: Function "for_each_child_of_node" should have of_node_put() before goto around lines 1325. drivers/gpu/drm/xlnx/xlnx_sdi.c:1311:1-23: WARNING: Function "for_each_child_of_node" should have of_node_put() before goto around lines 1333. Semantic patch information: False positives can be due to function calls within the for_each loop that may encapsulate an of_node_put. Generated by: scripts/coccinelle/iterators/for_each_child.cocci CC: Saurabh Sengar <[email protected]> Reported-by: kernel test robot <[email protected]> Signed-off-by: kernel test robot <[email protected]> --- tree: https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.15_LTS head: 1e67f149fb5eb4f5eb4e0d4f69194eac6d2497d7 commit: eedc9b61ce549e6a1af512cc21dfd7fa487d0823 [635/1197] drm: xlnx: sdi: Adding sdi-tx driver :::::: branch date: 8 days ago :::::: commit date: 5 months ago Please take the patch only if it's a positive warning. Thanks! drivers/gpu/drm/xlnx/xlnx_sdi.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/gpu/drm/xlnx/xlnx_sdi.c +++ b/drivers/gpu/drm/xlnx/xlnx_sdi.c @@ -1322,6 +1322,7 @@ static int xlnx_sdi_probe(struct platfor dev_err(dev, "No remote port at %s\n", port->name); of_node_put(endpoint); ret = -EINVAL; + of_node_put(port); goto err_disable_vidin_clk; } @@ -1330,6 +1331,7 @@ static int xlnx_sdi_probe(struct platfor ret = of_property_read_u32(port, "reg", &index); if (ret) { dev_err(dev, "reg property not present - %d\n", ret); + of_node_put(port); goto err_disable_vidin_clk; } _______________________________________________ kbuild mailing list -- [email protected] To unsubscribe send an email to [email protected]
