]> git.baikalelectronics.ru Git - kernel.git/commit
x86: fix boot hang in early_reserve_e820()
authorJan Beulich <jbeulich@novell.com>
Wed, 6 May 2009 12:02:19 +0000 (13:02 +0100)
committerH. Peter Anvin <hpa@zytor.com>
Fri, 8 May 2009 04:42:39 +0000 (21:42 -0700)
commitaae3ec6519d27a248543d6079597bcd93e79f8c9
tree4ce81e8bbdc731812e54ed4def92eac4f266cbd6
parent6037da2eaed8c5e2ec7fe875ae0615f64606d867
x86: fix boot hang in early_reserve_e820()

If the first non-reserved (sub-)range doesn't fit the size requested,
an endless loop will be entered. If a range returned from
find_e820_area_size() turns out insufficient in size, the range must
be skipped before calling the function again.

[ Impact: fixes boot hang on some platforms ]

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/kernel/e820.c