]> git.proxmox.com Git - mirror_ubuntu-focal-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)
committerPaolo Pisati <paolo.pisati@canonical.com>
Thu, 30 Jan 2020 15:21:30 +0000 (16:21 +0100)
commit8d1028ab11a17bbcdab79f69bb3d9826ec7a1134
treef4fb89527a566da9795fa17d9ce900b7b60cd3b3
parent107624762f76b572ff997e963c5fb9288674d761
RDMA/cma: add missed unregister_pernet_subsys in init failure

BugLink: https://bugs.launchpad.net/bugs/1860125
[ Upstream commit 44a7b6759000ac51b92715579a7bba9e3f9245c2 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/infiniband/core/cma.c