From: <[email protected]> Date: Wed, 23 Nov 2016 23:10:33 +0000
> From: Woojung Huh <[email protected]> > > When phy_init_hw() fails at phy_attach_direct(); > - phy_detach() calls phy_led_triggers_unregister() without > previous call of phy_led_triggers_register(). > - still call phy_led_triggers_register() and cause memory leak. > > Fixes: 2e0bc452f472 ("net: phy: leds: add support for led triggers on phy > link state change") > Signed-off-by: Woojung Huh <[email protected]> Applied to net-next.
