diff options
Diffstat (limited to 'fs/btrfs/file.c')
-rw-r--r-- | fs/btrfs/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index 507081059d97..5908521922fb 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c | |||
@@ -1094,7 +1094,7 @@ static ssize_t btrfs_file_write(struct file *file, const char __user *buf, | |||
1094 | PAGE_CACHE_SHIFT; | 1094 | PAGE_CACHE_SHIFT; |
1095 | 1095 | ||
1096 | WARN_ON(num_pages > nrptrs); | 1096 | WARN_ON(num_pages > nrptrs); |
1097 | memset(pages, 0, sizeof(pages)); | 1097 | memset(pages, 0, sizeof(struct page *) * nrptrs); |
1098 | 1098 | ||
1099 | ret = btrfs_check_free_space(root, write_bytes, 0); | 1099 | ret = btrfs_check_free_space(root, write_bytes, 0); |
1100 | if (ret) | 1100 | if (ret) |