diff options
author | Johan Hovold <johan@kernel.org> | 2020-08-06 17:37:53 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-08-19 08:26:58 +0200 |
commit | 5512f2549e3d725ba34fc6a0a10e47ae3de5630d (patch) | |
tree | 53557ea166ba266e35d28041881b1f33b8c36f56 /net/socket.c | |
parent | d556aa7ab7b71592fc60ecdc4b917644ecea2c92 (diff) |
net: phy: fix memory leak in device-create error path
[ Upstream commit d02cbc46136105cf86f84ac355e16f04696f538d ]
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@gmail.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/socket.c')
0 files changed, 0 insertions, 0 deletions