OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64a318e
)
NLM: fix parsing of sm notify procedure
author
J. Bruce Fields
<bfields@fieldses.org>
Tue, 3 Jan 2006 08:55:46 +0000
(09:55 +0100)
committer
Trond Myklebust
<Trond.Myklebust@netapp.com>
Fri, 6 Jan 2006 19:58:54 +0000
(14:58 -0500)
The procedure that decodes statd sm_notify call seems to be skipping a
few arguments. How did this ever work?
>From folks at Polyserve.
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/lockd/xdr4.c
patch
|
blob
|
history
diff --git
a/fs/lockd/xdr4.c
b/fs/lockd/xdr4.c
index
ae4d6b4
..
fdcf105
100644
(file)
--- a/
fs/lockd/xdr4.c
+++ b/
fs/lockd/xdr4.c
@@
-354,7
+354,9
@@
nlm4svc_decode_reboot(struct svc_rqst *rqstp, u32 *p, struct nlm_reboot *argp)
return 0;
argp->state = ntohl(*p++);
/* Preserve the address in network byte order */
- argp->addr = *p++;
+ argp->addr = *p++;
+ argp->vers = *p++;
+ argp->proto = *p++;
return xdr_argsize_check(rqstp, p);
}