summaryrefslogtreecommitdiff
path: root/net/core/selftests.c
diff options
context:
space:
mode:
authorLeon Romanovsky <leonro@nvidia.com>2021-07-28 10:33:45 +0300
committerDavid S. Miller <davem@davemloft.net>2021-07-28 10:23:45 +0100
commitacf34954efd17d4f65c7bb3e614381e6afc33222 (patch)
tree736c2753edc9f3c463d1f4a8076c7b0da0acbe37 /net/core/selftests.c
parent299b50fc9e8b986d21e51ac8bac0a880bf8c5fc5 (diff)
downloadlinux-acf34954efd17d4f65c7bb3e614381e6afc33222.tar.gz
linux-acf34954efd17d4f65c7bb3e614381e6afc33222.tar.bz2
linux-acf34954efd17d4f65c7bb3e614381e6afc33222.zip
net: ti: am65-cpsw-nuss: fix wrong devlink release order
The commit that introduced devlink support released devlink resources in wrong order, that made an unwind flow to be asymmetrical. In addition, the am65-cpsw-nuss used internal to devlink core field - registered. In order to fix the unwind flow and remove such access to the registered field, rewrite the code to call devlink_port_unregister only on registered ports. Fixes: 58356eb31d60 ("net: ti: am65-cpsw-nuss: Add devlink support") Signed-off-by: Leon Romanovsky <leonro@nvidia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/selftests.c')
0 files changed, 0 insertions, 0 deletions