* [PATCH v2] RDMA/cma: add missed unregister_pernet_subsys in init failure
@ 2019-12-06 1:24 Chuhong Yuan
2019-12-06 4:32 ` Parav Pandit
0 siblings, 1 reply; 3+ messages in thread
From: Chuhong Yuan @ 2019-12-06 1:24 UTC (permalink / raw)
Cc: Doug Ledford, Jason Gunthorpe, Parav Pandit, linux-rdma,
linux-kernel, Chuhong Yuan
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>
---
Changes in v2:
- Add fixes tag.
drivers/infiniband/core/cma.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/infiniband/core/cma.c b/drivers/infiniband/core/cma.c
index 25f2b70fd8ef..43a6f07e0afe 100644
--- a/drivers/infiniband/core/cma.c
+++ b/drivers/infiniband/core/cma.c
@@ -4763,6 +4763,7 @@ static int __init cma_init(void)
err:
unregister_netdevice_notifier(&cma_nb);
ib_sa_unregister_client(&sa_client);
+ unregister_pernet_subsys(&cma_pernet_operations);
err_wq:
destroy_workqueue(cma_wq);
return ret;
--
2.24.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v2] RDMA/cma: add missed unregister_pernet_subsys in init failure
2019-12-06 1:24 [PATCH v2] RDMA/cma: add missed unregister_pernet_subsys in init failure Chuhong Yuan
@ 2019-12-06 4:32 ` Parav Pandit
2019-12-09 17:08 ` Doug Ledford
0 siblings, 1 reply; 3+ messages in thread
From: Parav Pandit @ 2019-12-06 4:32 UTC (permalink / raw)
To: Chuhong Yuan; +Cc: Doug Ledford, Jason Gunthorpe, linux-rdma, linux-kernel
On 12/5/2019 7:24 PM, Chuhong Yuan wrote:
> 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>
> ---
> Changes in v2:
> - Add fixes tag.
>
> drivers/infiniband/core/cma.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/infiniband/core/cma.c b/drivers/infiniband/core/cma.c
> index 25f2b70fd8ef..43a6f07e0afe 100644
> --- a/drivers/infiniband/core/cma.c
> +++ b/drivers/infiniband/core/cma.c
> @@ -4763,6 +4763,7 @@ static int __init cma_init(void)
> err:
> unregister_netdevice_notifier(&cma_nb);
> ib_sa_unregister_client(&sa_client);
> + unregister_pernet_subsys(&cma_pernet_operations);
> err_wq:
> destroy_workqueue(cma_wq);
> return ret;
>
Reviewed-by: Parav Pandit <parav@mellanox.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] RDMA/cma: add missed unregister_pernet_subsys in init failure
2019-12-06 4:32 ` Parav Pandit
@ 2019-12-09 17:08 ` Doug Ledford
0 siblings, 0 replies; 3+ messages in thread
From: Doug Ledford @ 2019-12-09 17:08 UTC (permalink / raw)
To: Parav Pandit, Chuhong Yuan; +Cc: Jason Gunthorpe, linux-rdma, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1264 bytes --]
On Fri, 2019-12-06 at 04:32 +0000, Parav Pandit wrote:
> On 12/5/2019 7:24 PM, Chuhong Yuan wrote:
> > 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>
> > ---
> > Changes in v2:
> > - Add fixes tag.
> >
> > drivers/infiniband/core/cma.c | 1 +
> > 1 file changed, 1 insertion(+)
> >
> > diff --git a/drivers/infiniband/core/cma.c
> > b/drivers/infiniband/core/cma.c
> > index 25f2b70fd8ef..43a6f07e0afe 100644
> > --- a/drivers/infiniband/core/cma.c
> > +++ b/drivers/infiniband/core/cma.c
> > @@ -4763,6 +4763,7 @@ static int __init cma_init(void)
> > err:
> > unregister_netdevice_notifier(&cma_nb);
> > ib_sa_unregister_client(&sa_client);
> > + unregister_pernet_subsys(&cma_pernet_operations);
> > err_wq:
> > destroy_workqueue(cma_wq);
> > return ret;
> >
> Reviewed-by: Parav Pandit <parav@mellanox.com>
Thanks, applied to for-rc.
--
Doug Ledford <dledford@redhat.com>
GPG KeyID: B826A3330E572FDD
Fingerprint = AE6B 1BDA 122B 23B4 265B 1274 B826 A333 0E57 2FDD
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-12-09 17:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-06 1:24 [PATCH v2] RDMA/cma: add missed unregister_pernet_subsys in init failure Chuhong Yuan
2019-12-06 4:32 ` Parav Pandit
2019-12-09 17:08 ` Doug Ledford
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).