net: ethernet: ti: am65-cpsw: Call of_node_put() on error path
authorDan Carpenter <dan.carpenter@linaro.org>
Mon, 12 Jun 2023 07:18:50 +0000 (10:18 +0300)
committerJakub Kicinski <kuba@kernel.org>
Wed, 14 Jun 2023 03:47:03 +0000 (20:47 -0700)
commit374283a1001277e4d07491387aac1fad5aa08d43
treeb16ac8bbdf5034c01c1a105945f3bd7c9444a67c
parentfbf6f482b65da72744b4a82be412e53a94fd7c9c
net: ethernet: ti: am65-cpsw: Call of_node_put() on error path

This code returns directly but it should instead call of_node_put()
to drop some reference counts.

Fixes: dab2b265dd23 ("net: ethernet: ti: am65-cpsw: Add support for SERDES configuration")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Roger Quadros <rogerq@kernel.org>
Link: https://lore.kernel.org/r/e3012f0c-1621-40e6-bf7d-03c276f6e07f@kili.mountain
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/ti/am65-cpsw-nuss.c