patch-2.0.13 linux/fs/proc/array.c

Next file: linux/include/asm-alpha/processor.h
Previous file: linux/fs/isofs/inode.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.12/linux/fs/proc/array.c linux/fs/proc/array.c
@@ -427,8 +427,8 @@
 			if (ebp < stack_page || ebp >= 4092+stack_page)
 				return 0;
 			eip = *(unsigned long *) (ebp+4);
-			if ((void *)eip != sleep_on &&
-			    (void *)eip != interruptible_sleep_on)
+			if (eip < (unsigned long) interruptible_sleep_on
+			    || eip >= (unsigned long) add_timer)
 				return eip;
 			ebp = *(unsigned long *) ebp;
 		} while (count++ < 16);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov