浏览代码

nfs: count correct array for mnt3_counts array size

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: 1c5876ddbdb4 ("sunrpc: move p_count out of struct rpc_procinfo")
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eryu Guan <eguan@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Eryu Guan 8 年之前
父节点
当前提交
ecc7b435d2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      fs/nfs/mount_clnt.c

+ 1 - 1
fs/nfs/mount_clnt.c

@@ -512,7 +512,7 @@ static const struct rpc_version mnt_version1 = {
 	.counts		= mnt_counts,
 	.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 = {
 static const struct rpc_version mnt_version3 = {
 	.number		= 3,
 	.number		= 3,
 	.nrprocs	= ARRAY_SIZE(mnt3_procedures),
 	.nrprocs	= ARRAY_SIZE(mnt3_procedures),