ANDROID: Incremental fs: Fix compound page usercopy crash

Bug: 153560805
Test: incfs_test passes on qemu and Pixel 4
Signed-off-by: Paul Lawrence <paullawrence@google.com>
Change-Id: I1b55341e4e4247a74f3f539b9d190fef0ca409b8
Git-commit: 580b23c95a
Git-repo: https://android.googlesource.com/kernel/common/
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
This commit is contained in:
Paul Lawrence
2020-04-07 14:48:14 -07:00
committed by Blagovest Kolenichev
parent 46c1f3f598
commit 67b3fcb242
2 changed files with 6 additions and 4 deletions

View File

@@ -507,7 +507,8 @@ int incfs_get_filled_blocks(struct data_file *df,
return 0;
}
bme = kzalloc(sizeof(*bme) * READ_BLOCKMAP_ENTRIES, GFP_NOFS);
bme = kzalloc(sizeof(*bme) * READ_BLOCKMAP_ENTRIES,
GFP_NOFS | __GFP_COMP);
if (!bme)
return -ENOMEM;