Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9aead435 authored by yanhai zhu's avatar yanhai zhu Committed by Chris Mason
Browse files

Btrfs: Fix memset length in btrfs_file_write

parent 52c26179
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1094,7 +1094,7 @@ static ssize_t btrfs_file_write(struct file *file, const char __user *buf,
					PAGE_CACHE_SHIFT;

		WARN_ON(num_pages > nrptrs);
		memset(pages, 0, sizeof(pages));
		memset(pages, 0, sizeof(struct page *) * nrptrs);

		ret = btrfs_check_free_space(root, write_bytes, 0);
		if (ret)