]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1d97d592f1b75f3cbfc42b96e920fb76c3341ce7
treec0853705d8ef17aea63d88edaea799276ba3fee1
parent7855fcc07be326322b44982a21760fd9bd8e2b92
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: b55513268b85 ("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