projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a6cf94
)
svcauth_gss: fix error return code in rsc_parse()
author
Wei Yongjun
<yongjun_wei@trendmicro.com.cn>
Thu, 18 Apr 2013 02:49:09 +0000
(10:49 +0800)
committer
J. Bruce Fields
<bfields@redhat.com>
Tue, 30 Apr 2013 22:14:15 +0000
(18:14 -0400)
Fix to return a negative error code from the error handling
case instead of 0, as returned elsewhere in this function.
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
net/sunrpc/auth_gss/svcauth_gss.c
patch
|
blob
|
history
diff --git
a/net/sunrpc/auth_gss/svcauth_gss.c
b/net/sunrpc/auth_gss/svcauth_gss.c
index
b70ac1c
..
b1924e5
100644
(file)
--- a/
net/sunrpc/auth_gss/svcauth_gss.c
+++ b/
net/sunrpc/auth_gss/svcauth_gss.c
@@
-506,8
+506,10
@@
static int rsc_parse(struct cache_detail *cd,
len = qword_get(&mesg, buf, mlen);
if (len > 0) {
rsci.cred.cr_principal = kstrdup(buf, GFP_KERNEL);
- if (!rsci.cred.cr_principal)
+ if (!rsci.cred.cr_principal) {
+ status = -ENOMEM;
goto out;
+ }
}
}