diff -Nru a/Makefile b/Makefile
--- a/Makefile	2005-05-24 06:11:16 -07:00
+++ b/Makefile	2005-05-31 02:48:28 -07:00
@@ -1,7 +1,7 @@
 VERSION = 2
 PATCHLEVEL = 4
 SUBLEVEL = 31
-EXTRAVERSION = -rc1
+EXTRAVERSION = -rc1-bk1
 
 KERNELRELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
 
diff -Nru a/arch/i386/kernel/mtrr.c b/arch/i386/kernel/mtrr.c
--- a/arch/i386/kernel/mtrr.c	2004-07-30 06:29:18 -07:00
+++ b/arch/i386/kernel/mtrr.c	2005-05-29 14:01:36 -07:00
@@ -1674,6 +1674,7 @@
     char *ptr;
     char line[LINE_SIZE];
 
+    if (!len) return -EINVAL;
     if ( !suser () ) return -EPERM;
     /*  Can't seek (pwrite) on this device  */
     if (ppos != &file->f_pos) return -ESPIPE;
