Index: fs/proc/generic.c =================================================================== RCS file: /cvs/linuxppc64/linuxppc64_2_4/fs/proc/generic.c,v retrieving revision 1.6 diff -u -r1.6 generic.c --- fs/proc/generic.c 8 Oct 2001 19:19:59 -0000 1.6 +++ fs/proc/generic.c 22 Mar 2002 14:34:47 -0000 @@ -104,14 +104,14 @@ * return the bytes, and set `start' to the desired offset * as an unsigned int. - Paul.Russell@rustcorp.com.au */ - n -= copy_to_user(buf, start < page ? page : start, n); + n -= copy_to_user(buf, (unsigned long)start < PROC_BLOCK_SIZE ? page : start, n); if (n == 0) { if (retval == 0) retval = -EFAULT; break; } - *ppos += start < page ? (long)start : n; /* Move down the file */ + *ppos += (unsigned long)start < PROC_BLOCK_SIZE ? (long)start : n; /* Move down the file */ nbytes -= n; buf += n; retval += n;