projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a00a7ac
)
RDMA/core: Fix order of nldev_exit call
author
Leon Romanovsky
<leonro@nvidia.com>
Tue, 25 Oct 2022 07:37:13 +0000
(10:37 +0300)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:14:22 +0000
(13:14 +0100)
[ Upstream commit
4508d32ccced24c972bc4592104513e1ff8439b5
]
Create symmetrical exit flow by calling to nldev_exit() after
call to rdma_nl_unregister(RDMA_NL_LS).
Fixes:
6c80b41abe22
("RDMA/netlink: Add nldev initialization flows")
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Link:
https://lore.kernel.org/r/64e676774a53a406f4cde265d5a4cfd6b8e97df9.1666683334.git.leonro@nvidia.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/core/device.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/core/device.c
b/drivers/infiniband/core/device.c
index
1519379
..
ab2106a
100644
(file)
--- a/
drivers/infiniband/core/device.c
+++ b/
drivers/infiniband/core/device.c
@@
-2848,8
+2848,8
@@
err:
static void __exit ib_core_cleanup(void)
{
roce_gid_mgmt_cleanup();
- nldev_exit();
rdma_nl_unregister(RDMA_NL_LS);
+ nldev_exit();
unregister_pernet_device(&rdma_dev_net_ops);
unregister_blocking_lsm_notifier(&ibdev_lsm_nb);
ib_sa_cleanup();