Title: [4123] trunk/drivers/mtd/maps/bf5xx-flash.c: fix off by one error when calculating size based on memory ranges ( our custom stm_flash driver did not detect this, but the cfi_probe did)
Revision
4123
Author
vapier
Date
2008-01-21 03:23:43 -0600 (Mon, 21 Jan 2008)

Log Message

fix off by one error when calculating size based on memory ranges (our custom stm_flash driver did not detect this, but the cfi_probe did)

Diffstat

 bf5xx-flash.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

Modified Paths

Diff

Modified: trunk/drivers/mtd/maps/bf5xx-flash.c (4122 => 4123)


--- trunk/drivers/mtd/maps/bf5xx-flash.c	2008-01-21 08:55:04 UTC (rev 4122)
+++ trunk/drivers/mtd/maps/bf5xx-flash.c	2008-01-21 09:23:43 UTC (rev 4123)
@@ -153,7 +153,7 @@
 	enet_flash_pin = platform_get_irq(dev, 0);
 
 	bf5xx_map.bankwidth = pdata->width;
-	bf5xx_map.size = memory->end - memory->start;
+	bf5xx_map.size = memory->end - memory->start + 1;
 	bf5xx_map.virt = (void __iomem *)memory->start;
 	bf5xx_map.phys = memory->start;
 
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
http://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to