mm/memory.c: make apply_to_page_range() more robust
authorMika Penttilä <[email protected]>
Tue, 15 Mar 2016 21:56:45 +0000 (14:56 -0700)
committerLinus Torvalds <[email protected]>
Tue, 15 Mar 2016 23:55:16 +0000 (16:55 -0700)
commit9cb65bc3b1114004e2ccee5939031325c7bf16e8
tree9bf1f9abfb604f6d98bf9b8a641a5b8d6733fc53
parent4355c018c2ba8017592520573e76ad376ad656db
mm/memory.c: make apply_to_page_range() more robust

Arm and arm64 used to trigger this BUG_ON() - this has now been fixed.

But a WARN_ON() here is sufficient to catch future buggy callers.

Signed-off-by: Mika Penttilä <[email protected]>
Reviewed-by: Pekka Enberg <[email protected]>
Acked-by: David Rientjes <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/memory.c