Skip to content

Commit

Permalink
nfs: count correct array for mnt3_counts array size
Browse files Browse the repository at this point in the history
Array size of mnt3_counts should be the size of array
mnt3_procedures, not mnt_procedures, though they're same in size
right now. Found this by code inspection.

Fixes: 1c5876d ("sunrpc: move p_count out of struct rpc_procinfo")
Cc: Christoph Hellwig <[email protected]>
Signed-off-by: Eryu Guan <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Anna Schumaker <[email protected]>
  • Loading branch information
Eryu Guan authored and amschuma-ntap committed Jul 21, 2017
1 parent 2132973 commit ecc7b43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/nfs/mount_clnt.c
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ static const struct rpc_version mnt_version1 = {
.counts = mnt_counts,
};

static unsigned int mnt3_counts[ARRAY_SIZE(mnt_procedures)];
static unsigned int mnt3_counts[ARRAY_SIZE(mnt3_procedures)];
static const struct rpc_version mnt_version3 = {
.number = 3,
.nrprocs = ARRAY_SIZE(mnt3_procedures),
Expand Down

0 comments on commit ecc7b43

Please sign in to comment.