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 <hslester96@gmail.com> Reviewed-by: Parav Pandit <parav@mellanox.com> Link: https://lore.kernel.org/r/20191206012426.12744-1-hslester96@gmail.com Signed-off-by: Doug Ledford <dledford@redhat.com>
1 parent e42617b commit 44a7b67

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • drivers/infiniband/core

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)