projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
600424e
)
sunrpc: error out if register_shrinker fail
author
Kinglong Mee
<kinglongmee@gmail.com>
Tue, 7 Feb 2017 13:46:39 +0000
(21:46 +0800)
committer
Anna Schumaker
<Anna.Schumaker@Netapp.com>
Wed, 8 Feb 2017 22:02:45 +0000
(17:02 -0500)
register_shrinker may return error when register fail, error out.
Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/auth.c
patch
|
blob
|
blame
|
history
diff --git
a/net/sunrpc/auth.c
b/net/sunrpc/auth.c
index d8f17ea7932e9a3efaeb7743f9a0c662c2eb338c..8b344d0eb6ed3482b2872fbcfcf145ab58f94962 100644
(file)
--- a/
net/sunrpc/auth.c
+++ b/
net/sunrpc/auth.c
@@
-878,8
+878,12
@@
int __init rpcauth_init_module(void)
err = rpc_init_generic_auth();
if (err < 0)
goto out2;
- register_shrinker(&rpc_cred_shrinker);
+ err = register_shrinker(&rpc_cred_shrinker);
+ if (err < 0)
+ goto out3;
return 0;
+out3:
+ rpc_destroy_generic_auth();
out2:
rpc_destroy_authunix();
out1: