patch-2.4.19 linux-2.4.19/drivers/mtd/afs.c
Next file: linux-2.4.19/drivers/mtd/chips/Makefile
Previous file: linux-2.4.19/drivers/mtd/Makefile
Back to the patch index
Back to the overall index
- Lines: 22
- Date:
Fri Aug 2 17:39:44 2002
- Orig file:
linux-2.4.18/drivers/mtd/afs.c
- Orig date:
Thu Oct 4 15:14:41 2001
diff -urN linux-2.4.18/drivers/mtd/afs.c linux-2.4.19/drivers/mtd/afs.c
@@ -21,7 +21,7 @@
This is access code for flashes using ARM's flash partitioning
standards.
- $Id: afs.c,v 1.6 2001/10/02 10:04:51 rmk Exp $
+ $Id: afs.c,v 1.7 2001/11/01 20:04:54 rmk Exp $
======================================================================*/
@@ -82,6 +82,12 @@
if (fs.signature != 0xa0ffff9f)
ret = 1;
+ /*
+ * Don't touch the SIB.
+ */
+ if (fs.type == 2)
+ ret = 1;
+
*iis_start = fs.image_info_base & mask;
*img_start = fs.image_start & mask;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)