mtd/drivers/mtd/maps sa1100-flash.c,1.46,1.47

Russell King rmk at infradead.org
Mon Nov 1 08:44:38 EST 2004


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

Modified Files:
	sa1100-flash.c 
Log Message:
Ensure we don't try to clean up 4 billion MTD mappings.


Index: sa1100-flash.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/maps/sa1100-flash.c,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -r1.46 -r1.47
--- sa1100-flash.c	1 Nov 2004 13:12:24 -0000	1.46
+++ sa1100-flash.c	1 Nov 2004 13:44:36 -0000	1.47
@@ -1038,7 +1038,7 @@
 			if (sa[i].map->virt)
 				iounmap(sa[i].map->virt);
 			release_mem_region(sa[i].base, sa[i].size);
-		} while (i--);
+		} while (i-- > 0);
 
 		kfree(maps);
 	}





More information about the linux-mtd-cvs mailing list