patch-2.3.99-pre6 linux/drivers/char/nvram.c
Next file: linux/drivers/char/pc_keyb.c
Previous file: linux/drivers/char/n_tty.c
Back to the patch index
Back to the overall index
-  Lines: 9
-  Date:
Fri Apr 21 15:17:57 2000
-  Orig file: 
v2.3.99-pre5/linux/drivers/char/nvram.c
-  Orig date: 
Sun Feb 13 19:29:03 2000
diff -u --recursive --new-file v2.3.99-pre5/linux/drivers/char/nvram.c linux/drivers/char/nvram.c
@@ -372,7 +372,7 @@
 
     if (offset >= begin + len)
 		return( 0 );
-    *start = buffer + (begin - offset);
+    *start = buffer + (offset - begin);
     return( size < begin + len - offset ? size : begin + len - offset );
 	
 }
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)