lkml.org 
[lkml]   [2004]   [Dec]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH 2.6] clean-up: fixes "comparison between signed and unsigned"
This patch fixes warning "comparison between signed and unsigned"
occuring on line 308

Signed-off-by: Riina Kikas <Riina.Kikas@mail.ee>

--- a/arch/i386/mm/fault.c 2004-12-02 21:30:30.000000000 +0000
+++ b/arch/i386/mm/fault.c 2004-12-02 21:30:59.000000000 +0000
@@ -302,7 +302,13 @@
* pusha) doing post-decrement on the stack and that
* doesn't show up until later..
*/
- if (address + 32 < regs->esp)
+ unsigned long regs_esp;
+ if (regs->esp < 0) {
+ regs_esp = 0;
+ } else {
+ regs_esp = regs->esp;
+ }
+ if (address + 32 < regs_esp)
goto bad_area;
}
if (expand_stack(vma, address))
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 14:08    [W:0.166 / U:0.604 seconds]
©2003-2011 Jasper Spaans. Advertise on this site