Fix remaining bug of the off-by-one error ;)
authorFlorian Fainelli <florian@openwrt.org>
Mon, 8 Dec 2008 21:00:00 +0000 (21:00 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Mon, 8 Dec 2008 21:00:00 +0000 (21:00 +0000)
SVN-Revision: 13551

target/linux/brcm63xx/files/drivers/mtd/maps/bcm963xx-flash.c

index 6fb0ee1e080eeb9bab06d802b1a796465b4404a7..b5977960bf9e7742e8a8d37c71df8eab4c6dd6d6 100644 (file)
@@ -155,7 +155,7 @@ static int bcm963xx_probe(struct platform_device *pdev)
 
        r = platform_get_resource(pdev, IORESOURCE_MEM, 0); 
        bcm963xx_map.phys = r->start;
-       bcm963xx_map.size = (r->end - r->start);
+       bcm963xx_map.size = (r->end - r->start) + 1;
        bcm963xx_map.virt = ioremap(r->start, r->end - r->start + 1);
 
        if (!bcm963xx_map.virt) {