aboutsummaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorroel <roel.kluin@gmail.com>2011-03-08 22:32:26 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2011-03-21 12:45:34 -0700
commitbe0484472b6fff8b331ce8be44d737b88e57a130 (patch)
tree2df1dd7ee46f1608942c1829aeef9ccf5ed09571 /fs
parent9147532184cd5d39a677ad15c5b9a7fa9cea631a (diff)
nfsd: wrong index used in inner loop
commit 3ec07aa9522e3d5e9d5ede7bef946756e623a0a0 upstream. Index i was already used in the outer loop Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs')
-rw-r--r--fs/nfsd/nfs4xdr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c
index 3102b038fe7..f226172d8e1 100644
--- a/fs/nfsd/nfs4xdr.c
+++ b/fs/nfsd/nfs4xdr.c
@@ -1106,7 +1106,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);
@@ -1179,7 +1179,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: