Skip to content

Commit 44a7b67

Browse files
WillLesterdledford
authored andcommitted
RDMA/cma: add missed unregister_pernet_subsys in init failure
The driver forgets to call unregister_pernet_subsys() in the error path of cma_init(). Add the missed call to fix it. Fixes: 4be74b4 ("IB/cma: Separate port allocation to network namespaces") Signed-off-by: Chuhong Yuan <[email protected]> Reviewed-by: Parav Pandit <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Doug Ledford <[email protected]>
1 parent e42617b commit 44a7b67

File tree

1 file changed

+1
-0
lines changed
  • drivers/infiniband/core

1 file changed

+1
-0
lines changed

drivers/infiniband/core/cma.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4763,6 +4763,7 @@ static int __init cma_init(void)
47634763
err:
47644764
unregister_netdevice_notifier(&cma_nb);
47654765
ib_sa_unregister_client(&sa_client);
4766+
unregister_pernet_subsys(&cma_pernet_operations);
47664767
err_wq:
47674768
destroy_workqueue(cma_wq);
47684769
return ret;

0 commit comments

Comments
 (0)