summaryrefslogtreecommitdiff
path: root/kexec/arch/ia64/crashdump-ia64.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/ia64/crashdump-ia64.c
parent48f3ad610b7098659064801f8dc9688e8795a42d (diff)
Avoid possible overflows from signed/unsigned comparisons
Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/arch/ia64/crashdump-ia64.c')
-rw-r--r--kexec/arch/ia64/crashdump-ia64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kexec/arch/ia64/crashdump-ia64.c b/kexec/arch/ia64/crashdump-ia64.c
index d3bb6f7..6b64271 100644
--- a/kexec/arch/ia64/crashdump-ia64.c
+++ b/kexec/arch/ia64/crashdump-ia64.c
@@ -73,7 +73,7 @@ static int seg_comp(const void *a, const void *b)
*/
static void add_loaded_segments_info(struct mem_ehdr *ehdr)
{
- int i;
+ unsigned i;
for(i = 0; i < ehdr->e_phnum; i++) {
struct mem_phdr *phdr;
phdr = &ehdr->e_phdr[i];