patch-2.4.19 linux-2.4.19/drivers/mtd/mtdcore.c
Next file: linux-2.4.19/drivers/mtd/mtdpart.c
Previous file: linux-2.4.19/drivers/mtd/mtdconcat.c
Back to the patch index
Back to the overall index
- Lines: 16
- Date:
Fri Aug 2 17:39:44 2002
- Orig file:
linux-2.4.18/drivers/mtd/mtdcore.c
- Orig date:
Thu Oct 4 15:14:59 2001
diff -urN linux-2.4.18/drivers/mtd/mtdcore.c linux-2.4.19/drivers/mtd/mtdcore.c
@@ -1,5 +1,5 @@
/*
- * $Id: mtdcore.c,v 1.31 2001/10/02 15:05:11 dwmw2 Exp $
+ * $Id: mtdcore.c,v 1.32 2002/03/07 18:38:10 joern Exp $
*
* Core registration and callback routines for MTD
* drivers and users.
@@ -296,7 +296,7 @@
up(&mtd_table_mutex);
if (off >= len+begin)
return 0;
- *start = page + (begin-off);
+ *start = page + (off-begin);
return ((count < begin+len-off) ? count : begin+len-off);
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)