diff options
Diffstat (limited to 'net/sunrpc/auth_unix.c')
| -rw-r--r-- | net/sunrpc/auth_unix.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/sunrpc/auth_unix.c b/net/sunrpc/auth_unix.c index dc37021fc3e5..d5d692366294 100644 --- a/net/sunrpc/auth_unix.c +++ b/net/sunrpc/auth_unix.c | |||
| @@ -33,7 +33,7 @@ static struct rpc_auth unix_auth; | |||
| 33 | static const struct rpc_credops unix_credops; | 33 | static const struct rpc_credops unix_credops; |
| 34 | 34 | ||
| 35 | static struct rpc_auth * | 35 | static struct rpc_auth * |
| 36 | unx_create(struct rpc_clnt *clnt, rpc_authflavor_t flavor) | 36 | unx_create(struct rpc_auth_create_args *args, struct rpc_clnt *clnt) |
| 37 | { | 37 | { |
| 38 | dprintk("RPC: creating UNIX authenticator for client %p\n", | 38 | dprintk("RPC: creating UNIX authenticator for client %p\n", |
| 39 | clnt); | 39 | clnt); |
| @@ -192,13 +192,13 @@ unx_validate(struct rpc_task *task, __be32 *p) | |||
| 192 | flavor != RPC_AUTH_UNIX && | 192 | flavor != RPC_AUTH_UNIX && |
| 193 | flavor != RPC_AUTH_SHORT) { | 193 | flavor != RPC_AUTH_SHORT) { |
| 194 | printk("RPC: bad verf flavor: %u\n", flavor); | 194 | printk("RPC: bad verf flavor: %u\n", flavor); |
| 195 | return NULL; | 195 | return ERR_PTR(-EIO); |
| 196 | } | 196 | } |
| 197 | 197 | ||
| 198 | size = ntohl(*p++); | 198 | size = ntohl(*p++); |
| 199 | if (size > RPC_MAX_AUTH_SIZE) { | 199 | if (size > RPC_MAX_AUTH_SIZE) { |
| 200 | printk("RPC: giant verf size: %u\n", size); | 200 | printk("RPC: giant verf size: %u\n", size); |
| 201 | return NULL; | 201 | return ERR_PTR(-EIO); |
| 202 | } | 202 | } |
| 203 | task->tk_rqstp->rq_cred->cr_auth->au_rslack = (size >> 2) + 2; | 203 | task->tk_rqstp->rq_cred->cr_auth->au_rslack = (size >> 2) + 2; |
| 204 | p += (size >> 2); | 204 | p += (size >> 2); |
