From 573fbdce9c91092bc68035e469ce6e98ae2eeadf Mon Sep 17 00:00:00 2001 From: florian Date: Mon, 8 Dec 2008 21:00:00 +0000 Subject: [PATCH] Fix remaining bug of the off-by-one error ;) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13551 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/brcm63xx/files/drivers/mtd/maps/bcm963xx-flash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/brcm63xx/files/drivers/mtd/maps/bcm963xx-flash.c b/target/linux/brcm63xx/files/drivers/mtd/maps/bcm963xx-flash.c index 6fb0ee1e0..b5977960b 100644 --- a/target/linux/brcm63xx/files/drivers/mtd/maps/bcm963xx-flash.c +++ b/target/linux/brcm63xx/files/drivers/mtd/maps/bcm963xx-flash.c @@ -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) { -- 2.20.1