diff options
author | Zhang Changzhong <zhangchangzhong@huawei.com> | 2022-11-22 19:10:31 +0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-11-23 20:12:43 -0800 |
commit | 9a234a2a085ab9fd2be8d0c1eedfcd10f74b97eb (patch) | |
tree | 2cdb896e13ec677da202c8ec1a262405ec213951 /drivers/leds/rgb | |
parent | a73e04c2705e75c72707e9e7dec776b4c430d66b (diff) | |
download | linux-9a234a2a085ab9fd2be8d0c1eedfcd10f74b97eb.tar.bz2 |
net: marvell: prestera: add missing unregister_netdev() in prestera_port_create()
If prestera_port_sfp_bind() fails, unregister_netdev() should be called
in error handling path.
Compile tested only.
Fixes: 52323ef75414 ("net: marvell: prestera: add phylink support")
Signed-off-by: Zhang Changzhong <zhangchangzhong@huawei.com>
Reviewed-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Link: https://lore.kernel.org/r/1669115432-36841-1-git-send-email-zhangchangzhong@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/leds/rgb')
0 files changed, 0 insertions, 0 deletions