mtd/drivers/mtd/chips amd_flash.c,1.19,1.20
joern at infradead.org
joern at infradead.org
Fri Mar 14 13:31:50 EST 2003
Update of /home/cvs/mtd/drivers/mtd/chips
In directory phoenix.infradead.org:/tmp/cvs-serv22401
Modified Files:
amd_flash.c
Log Message:
Fix stack (ab)usage.
Index: amd_flash.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/chips/amd_flash.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- amd_flash.c 24 Jan 2003 13:30:11 -0000 1.19
+++ amd_flash.c 14 Mar 2003 18:31:47 -0000 1.20
@@ -424,10 +424,7 @@
static struct mtd_info *amd_flash_probe(struct map_info *map)
{
- /* Keep this table on the stack so that it gets deallocated after the
- * probe is done.
- */
- const struct amd_flash_info table[] = {
+ static const struct amd_flash_info table[] = {
{
mfr_id: MANUFACTURER_AMD,
dev_id: AM29LV160DT,
More information about the linux-mtd-cvs
mailing list