Commit:     ff1be9ad61e3e17ba83702d8ed0b534e5b8ee15c
Parent:     5f663404b27fa72546a592c5c932b0605b9c93a6
Author:     OGAWA Hirofumi <[EMAIL PROTECTED]>
AuthorDate: Sun May 20 23:39:40 2007 +0900
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Mon May 21 09:15:32 2007 -0700

    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 <[EMAIL PROTECTED]>
    Signed-off-by: OGAWA Hirofumi <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
 fs/buffer.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/buffer.c b/fs/buffer.c
index 49590d5..aa68206 100644
--- 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,
                generic_commit_write(NULL, new_page, zerofrom, PAGE_CACHE_SIZE);
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to