diff options
author | Johan Hovold <johan@kernel.org> | 2020-08-06 17:37:53 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-08-08 14:11:42 -0700 |
commit | d02cbc46136105cf86f84ac355e16f04696f538d (patch) | |
tree | ef93717094e0dd51449223dd54a2524b605681c2 /.clang-format | |
parent | 1c3b63f155f637594268cd1add8335461691b314 (diff) |
net: phy: fix memory leak in device-create error path
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>
Diffstat (limited to '.clang-format')
0 files changed, 0 insertions, 0 deletions