projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52c2617
)
Btrfs: Fix memset length in btrfs_file_write
author
yanhai zhu
<zhu.yanhai@gmail.com>
Mon, 5 Jan 2009 20:49:11 +0000
(15:49 -0500)
committer
Chris Mason
<chris.mason@oracle.com>
Mon, 5 Jan 2009 20:49:11 +0000
(15:49 -0500)
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/file.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/btrfs/file.c
b/fs/btrfs/file.c
index 507081059d97e0823d9e535fa9fb775be64fcc62..5908521922fb6b412018e176828583c08cffa101 100644
(file)
--- 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,
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)