Commit ff1be9ad authored by OGAWA Hirofumi's avatar OGAWA Hirofumi Committed by Linus Torvalds
Browse files

Fix "fs: convert core functions to zero_user_page"

The bug was introduced by 01f2705d

It misses to convert the first argument, it should be "new_page".

This became a cause of fatfs corruption.

Cc: Nate Diller <>
Signed-off-by: default avatarOGAWA Hirofumi <>
Signed-off-by: default avatarLinus Torvalds <>
parent 5f663404
......@@ -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);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment