diff options
| -rw-r--r-- | net/sunrpc/auth_gss/svcauth_gss.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/sunrpc/auth_gss/svcauth_gss.c b/net/sunrpc/auth_gss/svcauth_gss.c index b70ac1cec8f5..b1924e53e8c7 100644 --- 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, | |||
| 506 | len = qword_get(&mesg, buf, mlen); | 506 | len = qword_get(&mesg, buf, mlen); |
| 507 | if (len > 0) { | 507 | if (len > 0) { |
| 508 | rsci.cred.cr_principal = kstrdup(buf, GFP_KERNEL); | 508 | rsci.cred.cr_principal = kstrdup(buf, GFP_KERNEL); |
| 509 | if (!rsci.cred.cr_principal) | 509 | if (!rsci.cred.cr_principal) { |
| 510 | status = -ENOMEM; | ||
| 510 | goto out; | 511 | goto out; |
| 512 | } | ||
| 511 | } | 513 | } |
| 512 | 514 | ||
| 513 | } | 515 | } |
