diff options
Diffstat (limited to 'fs/lockd/svc4proc.c')
-rw-r--r-- | fs/lockd/svc4proc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/lockd/svc4proc.c b/fs/lockd/svc4proc.c index 9b591bc18341..47a66aa5d55b 100644 --- a/fs/lockd/svc4proc.c +++ b/fs/lockd/svc4proc.c | |||
@@ -224,7 +224,7 @@ nlm4svc_proc_granted(struct svc_rqst *rqstp, struct nlm_args *argp, | |||
224 | resp->cookie = argp->cookie; | 224 | resp->cookie = argp->cookie; |
225 | 225 | ||
226 | dprintk("lockd: GRANTED called\n"); | 226 | dprintk("lockd: GRANTED called\n"); |
227 | resp->status = nlmclnt_grant(&rqstp->rq_addr, &argp->lock); | 227 | resp->status = nlmclnt_grant(svc_addr_in(rqstp), &argp->lock); |
228 | dprintk("lockd: GRANTED status %d\n", ntohl(resp->status)); | 228 | dprintk("lockd: GRANTED status %d\n", ntohl(resp->status)); |
229 | return rpc_success; | 229 | return rpc_success; |
230 | } | 230 | } |
@@ -421,7 +421,9 @@ static __be32 | |||
421 | nlm4svc_proc_sm_notify(struct svc_rqst *rqstp, struct nlm_reboot *argp, | 421 | nlm4svc_proc_sm_notify(struct svc_rqst *rqstp, struct nlm_reboot *argp, |
422 | void *resp) | 422 | void *resp) |
423 | { | 423 | { |
424 | struct sockaddr_in saddr = rqstp->rq_addr; | 424 | struct sockaddr_in saddr; |
425 | |||
426 | memcpy(&saddr, svc_addr_in(rqstp), sizeof(saddr)); | ||
425 | 427 | ||
426 | dprintk("lockd: SM_NOTIFY called\n"); | 428 | dprintk("lockd: SM_NOTIFY called\n"); |
427 | if (saddr.sin_addr.s_addr != htonl(INADDR_LOOPBACK) | 429 | if (saddr.sin_addr.s_addr != htonl(INADDR_LOOPBACK) |