projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32b007b
)
nfsd: wrong index used in inner loop
author
roel
<roel.kluin@gmail.com>
Tue, 8 Mar 2011 21:32:26 +0000
(22:32 +0100)
committer
J. Bruce Fields
<bfields@redhat.com>
Wed, 9 Mar 2011 00:46:10 +0000
(19:46 -0500)
Index i was already used in the outer loop
Cc: stable@kernel.org
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4xdr.c
patch
|
blob
|
history
diff --git
a/fs/nfsd/nfs4xdr.c
b/fs/nfsd/nfs4xdr.c
index 1275b86550701812ccea7c0cc80759eb63fd019b..615f0a9f06008e54ceda4ff4804b295fdf3a8b13 100644
(file)
--- a/
fs/nfsd/nfs4xdr.c
+++ b/
fs/nfsd/nfs4xdr.c
@@
-1142,7
+1142,7
@@
nfsd4_decode_create_session(struct nfsd4_compoundargs *argp,
u32 dummy;
char *machine_name;
- int i;
+ int i
, j
;
int nr_secflavs;
READ_BUF(16);
@@
-1215,7
+1215,7
@@
nfsd4_decode_create_session(struct nfsd4_compoundargs *argp,
READ_BUF(4);
READ32(dummy);
READ_BUF(dummy * 4);
- for (
i = 0; i < dummy; ++i
)
+ for (
j = 0; j < dummy; ++j
)
READ32(dummy);
break;
case RPC_AUTH_GSS: