Message ID | alpine.DEB.2.22.394.2106231617540.99238@hadrien (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | phy: rockchip-inno-usb2: fix for_each_child.cocci warnings | expand |
--- a/drivers/phy/rockchip/phy-rockchip-inno-usb2.c +++ b/drivers/phy/rockchip/phy-rockchip-inno-usb2.c @@ -1180,8 +1180,10 @@ static int rockchip_usb2phy_probe(struct next_child: /* to prevent out of boundary */ - if (++index >= rphy->phy_cfg->num_ports) + if (++index >= rphy->phy_cfg->num_ports) { + of_node_put(child_np); break; + } } provider = devm_of_phy_provider_register(dev, of_phy_simple_xlate);