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

Andrew Lunn andrew at lunn.ch
Tue Nov 15 17:58:18 PST 2022


> +		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



More information about the linux-arm-kernel mailing list