RDMA/cma: add missed unregister_pernet_subsys in init failure
authorChuhong Yuan <hslester96@gmail.com>
Fri, 6 Dec 2019 01:24:26 +0000 (09:24 +0800)
committerDoug Ledford <dledford@redhat.com>
Mon, 9 Dec 2019 17:02:11 +0000 (12:02 -0500)
commit44a7b6759000ac51b92715579a7bba9e3f9245c2
treec0853705d8ef17aea63d88edaea799276ba3fee1
parente42617b825f8073569da76dc4510bfa019b1c35a
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: 4be74b42a6d0 ("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>
drivers/infiniband/core/cma.c