diff options
| author | H. Peter Anvin <[email protected]> | 2010-02-19 00:13:40 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2010-02-21 16:57:08 +0000 |
| commit | 87b8d1adefa1548b591cbf0d63965987e2cf893d (patch) | |
| tree | 9bb71e42dfed2ac212a9dc55dd5e2ba1f8d042ac /drivers/mtd/lpddr/lpddr_cmds.c | |
| parent | Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vir... (diff) | |
| download | kernel-87b8d1adefa1548b591cbf0d63965987e2cf893d.tar.gz kernel-87b8d1adefa1548b591cbf0d63965987e2cf893d.zip | |
mm: Make copy_from_user() in migrate.c statically predictable
x86-32 has had a static test for copy_on_user() overflow for a while.
This test currently fails in mm/migrate.c resulting in an
allyesconfig/allmodconfig build failure on x86-32:
In function ‘copy_from_user’,
inlined from ‘do_pages_stat’ at
/home/hpa/kernel/git/mm/migrate.c:1012:
/home/hpa/kernel/git/arch/x86/include/asm/uaccess_32.h:212: error:
call to ‘copy_from_user_overflow’ declared
Make the logic more explicit and therefore easier for gcc to
understand.
v2: rewrite the loop entirely using a more normal structure for a
chunked-data loop (Linus Torvalds)
Reported-by: Len Brown <[email protected]>
Signed-off-by: H. Peter Anvin <[email protected]>
Reviewed-and-Tested-by: KOSAKI Motohiro <[email protected]>
Cc: Arjan van de Ven <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Christoph Lameter <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: Rik van Riel <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/mtd/lpddr/lpddr_cmds.c')
0 files changed, 0 insertions, 0 deletions
