patch-2.2.16 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

diff -urN v2.2.15/linux/drivers/char/nvram.c linux/drivers/char/nvram.c
@@ -373,7 +373,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)