aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>2007-05-20 10:39:40 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-21 12:15:32 -0400
commitff1be9ad61e3e17ba83702d8ed0b534e5b8ee15c (patch)
treece6f85896cf04d26e027ef6b24c60e7b28508faf
parent5f663404b27fa72546a592c5c932b0605b9c93a6 (diff)
Fix "fs: convert core functions to zero_user_page"
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 <nate.diller@gmail.com> Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--fs/buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/buffer.c b/fs/buffer.c
index 49590d590d7d..aa68206bd517 100644
--- a/fs/buffer.c
+++ b/fs/buffer.c
@@ -2101,7 +2101,7 @@ int cont_prepare_write(struct page *page, unsigned offset,
2101 PAGE_CACHE_SIZE, get_block); 2101 PAGE_CACHE_SIZE, get_block);
2102 if (status) 2102 if (status)
2103 goto out_unmap; 2103 goto out_unmap;
2104 zero_user_page(page, zerofrom, PAGE_CACHE_SIZE - zerofrom, 2104 zero_user_page(new_page, zerofrom, PAGE_CACHE_SIZE - zerofrom,
2105 KM_USER0); 2105 KM_USER0);
2106 generic_commit_write(NULL, new_page, zerofrom, PAGE_CACHE_SIZE); 2106 generic_commit_write(NULL, new_page, zerofrom, PAGE_CACHE_SIZE);
2107 unlock_page(new_page); 2107 unlock_page(new_page);