projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f66340
)
Fix "fs: convert core functions to zero_user_page"
author
OGAWA Hirofumi
<
[email protected]
>
Sun, 20 May 2007 14:39:40 +0000
(23:39 +0900)
committer
Linus Torvalds
<
[email protected]
>
Mon, 21 May 2007 16:15:32 +0000
(09:15 -0700)
The bug was introduced by
01f2705daf5a36208e69d7cf95db9c330f843af6
.
It misses to convert the first argument, it should be "new_page".
This became a cause of fatfs corruption.
Cc: Nate Diller <
[email protected]
>
Signed-off-by: OGAWA Hirofumi <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
fs/buffer.c
patch
|
blob
|
history
diff --git
a/fs/buffer.c
b/fs/buffer.c
index 49590d590d7dbeaa857a89221f26c274956af6fd..aa68206bd517929ccd1a7f338889ba0575ab4c30 100644
(file)
--- a/
fs/buffer.c
+++ b/
fs/buffer.c
@@
-2101,7
+2101,7
@@
int cont_prepare_write(struct page *page, unsigned offset,
PAGE_CACHE_SIZE, get_block);
if (status)
goto out_unmap;
- zero_user_page(page, zerofrom, PAGE_CACHE_SIZE - zerofrom,
+ zero_user_page(
new_
page, zerofrom, PAGE_CACHE_SIZE - zerofrom,
KM_USER0);
generic_commit_write(NULL, new_page, zerofrom, PAGE_CACHE_SIZE);
unlock_page(new_page);