From: Sascha Hauer Date: Tue, 27 Jun 2006 13:38:15 +0000 (+0100) Subject: [MTD] Fix off-by-one error in physmap.c X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=6d4f8224d4ee065e0e3186cc554468d735e6015d;p=deliverable%2Flinux.git [MTD] Fix off-by-one error in physmap.c This patch fixes a simple off-by-one error in the mtd physmap driver. Signed-off-by: Sascha Hauer Signed-off-by: Lennert Buytenhek Signed-off-by: David Woodhouse --- diff --git a/drivers/mtd/maps/physmap.c b/drivers/mtd/maps/physmap.c index 433c3cac3ca9..d6301f08906d 100644 --- a/drivers/mtd/maps/physmap.c +++ b/drivers/mtd/maps/physmap.c @@ -182,7 +182,7 @@ static struct physmap_flash_data physmap_flash_data = { static struct resource physmap_flash_resource = { .start = CONFIG_MTD_PHYSMAP_START, - .end = CONFIG_MTD_PHYSMAP_START + CONFIG_MTD_PHYSMAP_LEN, + .end = CONFIG_MTD_PHYSMAP_START + CONFIG_MTD_PHYSMAP_LEN - 1, .flags = IORESOURCE_MEM, };