Re: [PATCH] x86/e820: fix e820_search_gap() error handling on x86-32

2017-01-25 Thread Wei Yang
You are right. Thanks :-) On Wed, Jan 11, 2017 at 03:49:04PM +0100, Arnd Bergmann wrote: >gcc correctly points out that on 32-bit kernels, e820_search_gap() >not finding a start now leads to pci_mem_start being set to an >uninitialized value: > >arch/x86/kernel/e820.c: In function 'e820_setup_gap'

[PATCH] x86/e820: fix e820_search_gap() error handling on x86-32

2017-01-11 Thread Arnd Bergmann
gcc correctly points out that on 32-bit kernels, e820_search_gap() not finding a start now leads to pci_mem_start being set to an uninitialized value: arch/x86/kernel/e820.c: In function 'e820_setup_gap': arch/x86/kernel/e820.c:641:16: error: 'gapstart' may be used uninitialized in this function