Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 127465
b: refs/heads/master
c: 576df46
h: refs/heads/master
i:
  127463: 483c3e3
v: v3
  • Loading branch information
Chuck Lever authored and J. Bruce Fields committed Jan 6, 2009
1 parent c3c965e commit 842ef3d
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7fefc9cb9d5f129c238d93166f705c96ca2e7e51
refs/heads/master: 576df4634e37e46b441fefb91915184edb13bb94
3 changes: 2 additions & 1 deletion trunk/fs/lockd/host.c
Original file line number Diff line number Diff line change
Expand Up @@ -453,9 +453,10 @@ void nlm_release_host(struct nlm_host *host)
*/
void nlm_host_rebooted(const struct nlm_reboot *info)
{
__be32 *p = (__be32 *)&info->priv.data;
const struct sockaddr_in sin = {
.sin_family = AF_INET,
.sin_addr.s_addr = info->addr,
.sin_addr.s_addr = *p,
};
struct hlist_head *chain;
struct hlist_node *pos;
Expand Down
4 changes: 2 additions & 2 deletions trunk/fs/lockd/xdr.c
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,8 @@ nlmsvc_decode_reboot(struct svc_rqst *rqstp, __be32 *p, struct nlm_reboot *argp)
if (!(p = xdr_decode_string_inplace(p, &argp->mon, &argp->len, SM_MAXSTRLEN)))
return 0;
argp->state = ntohl(*p++);
/* Preserve the address in network byte order */
argp->addr = *p++;
memcpy(&argp->priv.data, p, sizeof(argp->priv.data));
p += XDR_QUADLEN(SM_PRIV_SIZE);
return xdr_argsize_check(rqstp, p);
}

Expand Down
4 changes: 2 additions & 2 deletions trunk/fs/lockd/xdr4.c
Original file line number Diff line number Diff line change
Expand Up @@ -356,8 +356,8 @@ nlm4svc_decode_reboot(struct svc_rqst *rqstp, __be32 *p, struct nlm_reboot *argp
if (!(p = xdr_decode_string_inplace(p, &argp->mon, &argp->len, SM_MAXSTRLEN)))
return 0;
argp->state = ntohl(*p++);
/* Preserve the address in network byte order */
argp->addr = *p++;
memcpy(&argp->priv.data, p, sizeof(argp->priv.data));
p += XDR_QUADLEN(SM_PRIV_SIZE);
return xdr_argsize_check(rqstp, p);
}

Expand Down
8 changes: 4 additions & 4 deletions trunk/include/linux/lockd/xdr.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@ struct nlm_res {
* statd callback when client has rebooted
*/
struct nlm_reboot {
char * mon;
unsigned int len;
u32 state;
__be32 addr;
char *mon;
unsigned int len;
u32 state;
struct nsm_private priv;
};

/*
Expand Down

0 comments on commit 842ef3d

Please sign in to comment.