Re: [PATCH v4 2/3] phy: handle optional regulator for PHY

Andrew Lunn
2022-11-16T01:59:03Z

> + reg_cnt = of_regulator_bulk_get_all(&bus->dev, nchild, &consumers);

This allocates memory for consumers?

I don't see it being freed. I think you need to add to
phy_remove. Plus the error patch should also free it.

Andrew