Skip to content

Commit

Permalink
nfsd: wrong index used in inner loop
Browse files Browse the repository at this point in the history
Index i was already used in the outer loop

Cc: [email protected]
Signed-off-by: Roel Kluin <[email protected]>
Signed-off-by: J. Bruce Fields <[email protected]>
  • Loading branch information
RoelKluin authored and J. Bruce Fields committed Mar 9, 2011
1 parent 32b007b commit 3ec07aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/nfsd/nfs4xdr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 3ec07aa

Please sign in to comment.