Quoting Javier Carrasco (2024-06-24 14:10:06) > The for_each_child_of_node() macro requires an explicit call to > of_node_put() on early exits to decrement the child refcount and avoid a > memory leak. > The child node is not required outsie the loop, and the resource must be > released before the function returns. > > Add the missing of_node_put(). > > Cc: stable@xxxxxxxxxxxxxxx > Fixes: 82e82130a78b ("usb: core: Set connect_type of ports based on DT node") > Signed-off-by: Javier Carrasco <javier.carrasco.cruz@xxxxxxxxx> > --- Reviewed-by: Stephen Boyd <swboyd@xxxxxxxxxxxx>