Files
android_kernel_xiaomi_sm8450/arch/x86/mm
Alan Cox c613ec1a7f x86, early_ioremap: fix fencepost error
The x86 implementation of early_ioremap has an off by one error. If we get
an object which ends on the first byte of a page we undermap by one page and
this causes a crash on boot with the ASUS P5QL whose DMI table happens to fit
this alignment.

The size computation is currently

	last_addr = phys_addr + size - 1;
	npages = (PAGE_ALIGN(last_addr) - phys_addr)

(Consider a request for 1 byte at alignment 0...)

Closes #11693

Debugging work by Ian Campbell/Felix Geyer

Signed-off-by: Alan Cox <alan@rehat.com>
Cc: <stable@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2008-10-12 11:19:04 +02:00
..
2008-01-30 13:31:41 +01:00
2008-04-30 23:15:34 +02:00
2008-10-10 19:30:08 +02:00
2008-07-08 13:10:38 +02:00
2008-07-18 14:10:27 +02:00
2008-01-30 13:31:10 +01:00
2008-10-10 19:30:08 +02:00
2008-10-10 19:29:20 +02:00
2008-08-21 10:13:21 +02:00
2008-09-06 19:47:09 +02:00
2008-07-11 10:22:33 +02:00
2008-05-24 11:27:28 +02:00