]> git.karo-electronics.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 16 Nov 2007 16:22:58 +0000 (08:22 -0800)
commit2d49e8885782ea938a4d1a2cee4898753e505f70
tree42298c321df52335027c418d46d67012c7ff9d5b
parent430bb2ee8d136eae9d5641a23e44c791b6d747f0
x86 setup: sizeof() is unsigned, unbreak comparisons

patch e6e1ace9904b72478f0c5a5aa7bd174cb6f62561 in mainline.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/i386/boot/boot.h
arch/i386/boot/video-bios.c
arch/i386/boot/video-vesa.c
arch/i386/boot/video.c