]> git.baikalelectronics.ru Git - kernel.git/commit
x86 setup: sizeof() is unsigned, unbreak comparisons
authorH. Peter Anvin <hpa@zytor.com>
Thu, 25 Oct 2007 23:09:38 +0000 (16:09 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Fri, 26 Oct 2007 03:20:06 +0000 (20:20 -0700)
commitf20070ba383def130bee9d9b3c0655b9dbf64c7f
tree8858fe4c1d37e4e9278020bf8fba369dfdddd2a7
parent2aee37a61704984d6689e8e6ec910f77a6eeeb80
x86 setup: sizeof() is unsigned, unbreak comparisons

We use signed values for limit checking since the values can go
negative under certain circumstances.  However, sizeof() is unsigned
and forces the comparison to be unsigned, so move the comparison into
the heap_free() macros so we can ensure it is a signed comparison.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/boot/boot.h
arch/x86/boot/video-bios.c
arch/x86/boot/video-vesa.c
arch/x86/boot/video.c