patch-1.3.22 linux/drivers/char/mem.c
Next file: linux/drivers/char/psaux.c
Previous file: linux/drivers/char/lp.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Tue Aug 29 10:15:51 1995
- Orig file:
v1.3.21/linux/drivers/char/mem.c
- Orig date:
Wed Aug 2 13:21:00 1995
diff -u --recursive --new-file v1.3.21/linux/drivers/char/mem.c linux/drivers/char/mem.c
@@ -42,7 +42,7 @@
if (count < 0)
return -EINVAL;
- if (p >= high_memory)
+ if (MAP_NR(p) >= MAP_NR(high_memory))
return 0;
if (count > high_memory - p)
count = high_memory - p;
@@ -67,7 +67,7 @@
if (count < 0)
return -EINVAL;
- if (p >= high_memory)
+ if (MAP_NR(p) >= MAP_NR(high_memory))
return 0;
if (count > high_memory - p)
count = high_memory - p;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this