Re: [PATCH net] net: phy: fix memory leak in device-create error path
From: David Miller
Date: Sat Aug 08 2020 - 17:13:38 EST
From: Johan Hovold <johan@xxxxxxxxxx>
Date: Thu, 6 Aug 2020 17:37:53 +0200
> A recent commit introduced a late error path in phy_device_create()
> which fails to release the device name allocated by dev_set_name().
>
> Fixes: 13d0ab6750b2 ("net: phy: check return code when requesting PHY driver module")
> Cc: Heiner Kallweit <hkallweit1@xxxxxxxxx>
> Signed-off-by: Johan Hovold <johan@xxxxxxxxxx>
Applied and queued up for -stable, thank you.