Re: [PATCH net 7/7] net: ethernet: stmmac: fix of-node and fixed-link-phydev leaks

2016-11-30 Thread Maxime Ripard
On Wed, Nov 30, 2016 at 03:29:55PM +0100, Johan Hovold wrote: > Make sure to deregister and free any fixed-link phy registered during > probe on probe errors and on driver unbind by adding a new glue helper > function. > > Drop the of-node reference taken in the same path also on late probe > erro

[PATCH net 7/7] net: ethernet: stmmac: fix of-node and fixed-link-phydev leaks

2016-11-30 Thread Johan Hovold
Make sure to deregister and free any fixed-link phy registered during probe on probe errors and on driver unbind by adding a new glue helper function. Drop the of-node reference taken in the same path also on late probe errors (and not just on driver unbind) by moving the put from stmmac_dvr_remov