diff options
author | NeilBrown <neilb@suse.de> | 2020-05-22 05:01:33 +0300 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2020-05-29 01:15:00 +0300 |
commit | 24c5efe41c29ee3e55bcf5a1c9f61ca8709622e8 (patch) | |
tree | ff3cd363effa0d73c445a9dbfc885306ec810111 /include/linux/sunrpc/svcauth_gss.h | |
parent | d47a5dc2888fd1b94adf1553068b8dad76cec96c (diff) | |
download | linux-24c5efe41c29ee3e55bcf5a1c9f61ca8709622e8.tar.xz |
sunrpc: clean up properly in gss_mech_unregister()
gss_mech_register() calls svcauth_gss_register_pseudoflavor() for each
flavour, but gss_mech_unregister() does not call auth_domain_put().
This is unbalanced and makes it impossible to reload the module.
Change svcauth_gss_register_pseudoflavor() to return the registered
auth_domain, and save it for later release.
Cc: stable@vger.kernel.org (v2.6.12+)
Link: https://bugzilla.kernel.org/show_bug.cgi?id=206651
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'include/linux/sunrpc/svcauth_gss.h')
-rw-r--r-- | include/linux/sunrpc/svcauth_gss.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/sunrpc/svcauth_gss.h b/include/linux/sunrpc/svcauth_gss.h index ca39a388dc22..f09c82b0a7ae 100644 --- a/include/linux/sunrpc/svcauth_gss.h +++ b/include/linux/sunrpc/svcauth_gss.h @@ -20,7 +20,8 @@ int gss_svc_init(void); void gss_svc_shutdown(void); int gss_svc_init_net(struct net *net); void gss_svc_shutdown_net(struct net *net); -int svcauth_gss_register_pseudoflavor(u32 pseudoflavor, char * name); +struct auth_domain *svcauth_gss_register_pseudoflavor(u32 pseudoflavor, + char *name); u32 svcauth_gss_flavor(struct auth_domain *dom); #endif /* _LINUX_SUNRPC_SVCAUTH_GSS_H */ |