summaryrefslogtreecommitdiff
path: root/kexec/arch/i386/crashdump-x86.c
diff options
context:
space:
mode:
authorSimon Horman <horms@verge.net.au>2010-02-02 14:42:02 +1100
committerSimon Horman <horms@verge.net.au>2010-02-02 14:42:02 +1100
commit3d6c264eaa4be13208905867e31320ddc30471ae (patch)
treedbafb986f39f40c6df88ae4b43f33fedc20eb0b7 /kexec/arch/i386/crashdump-x86.c
parent48f3ad610b7098659064801f8dc9688e8795a42d (diff)
Avoid possible overflows from signed/unsigned comparisons
Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/arch/i386/crashdump-x86.c')
-rw-r--r--kexec/arch/i386/crashdump-x86.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kexec/arch/i386/crashdump-x86.c b/kexec/arch/i386/crashdump-x86.c
index 7e86819..1782712 100644
--- a/kexec/arch/i386/crashdump-x86.c
+++ b/kexec/arch/i386/crashdump-x86.c
@@ -375,7 +375,8 @@ static void ultoa(unsigned long i, char *str)
* memory regions the new kernel can use to boot into. */
static int cmdline_add_memmap(char *cmdline, struct memory_range *memmap_p)
{
- int i, cmdlen, len, min_sizek = 100;
+ int i, cmdlen, len;
+ unsigned long min_sizek = 100;
char str_mmap[256], str_tmp[20];
/* Exact map */