mtd/drivers/mtd/chips cfi_cmdset_0002.c,1.63,1.64

sjhill at cotw.com sjhill at cotw.com
Mon Feb 17 15:47:14 EST 2003


Update of /home/cvs/mtd/drivers/mtd/chips
In directory phoenix.infradead.org:/tmp/cvs-serv388

Modified Files:
	cfi_cmdset_0002.c 
Log Message:
Temporary buffer in 'cfi_amdstd_write' is not large enough for 64-bit
wide flash bus configurations. Thanks to John Whitney at TimeSys
(John.Whitney at timesys.com).


Index: cfi_cmdset_0002.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/chips/cfi_cmdset_0002.c,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -r1.63 -r1.64
--- cfi_cmdset_0002.c	27 Jan 2003 16:34:36 -0000	1.63
+++ cfi_cmdset_0002.c	17 Feb 2003 20:47:11 -0000	1.64
@@ -593,7 +593,7 @@
 		unsigned long bus_ofs = ofs & ~(CFIDEV_BUSWIDTH-1);
 		int i = ofs - bus_ofs;
 		int n = 0;
-		u_char tmp_buf[4];
+		u_char tmp_buf[8];
 		__u32 datum;
 
 		map->copy_from(map, tmp_buf, bus_ofs + cfi->chips[chipnum].start, CFIDEV_BUSWIDTH);
@@ -691,7 +691,7 @@
 	/* Write the trailing bytes if any */
 	if (len & (CFIDEV_BUSWIDTH-1)) {
 		int i = 0, n = 0;
-		u_char tmp_buf[4];
+		u_char tmp_buf[8];
 		__u32 datum;
 
 		map->copy_from(map, tmp_buf, ofs + cfi->chips[chipnum].start, CFIDEV_BUSWIDTH);





More information about the linux-mtd-cvs mailing list