diff options
Diffstat (limited to 'fs/nfsd/nfsctl.c')
-rw-r--r-- | fs/nfsd/nfsctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c index a0871b3efeb7..c8960aff0968 100644 --- a/fs/nfsd/nfsctl.c +++ b/fs/nfsd/nfsctl.c | |||
@@ -105,7 +105,7 @@ static ssize_t nfsctl_transaction_write(struct file *file, const char __user *bu | |||
105 | char *data; | 105 | char *data; |
106 | ssize_t rv; | 106 | ssize_t rv; |
107 | 107 | ||
108 | if (ino >= sizeof(write_op)/sizeof(write_op[0]) || !write_op[ino]) | 108 | if (ino >= ARRAY_SIZE(write_op) || !write_op[ino]) |
109 | return -EINVAL; | 109 | return -EINVAL; |
110 | 110 | ||
111 | data = simple_transaction_get(file, buf, size); | 111 | data = simple_transaction_get(file, buf, size); |