[MTD] Fix off-by-one error in physmap.c
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Tue Jun 27 09:59:02 EDT 2006
Commit: 6d4f8224d4ee065e0e3186cc554468d735e6015d
Parent: ce5b0968b1caa6b93e366e88a3c5fa2fd59029ce
commit 6d4f8224d4ee065e0e3186cc554468d735e6015d
Author: Sascha Hauer <s.hauer at pengutronix.de>
AuthorDate: Tue Jun 27 14:38:15 2006 +0100
Commit: David Woodhouse <dwmw2 at infradead.org>
CommitDate: Tue Jun 27 14:38:15 2006 +0100
[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 <s.hauer at pengutronix.de>
Signed-off-by: Lennert Buytenhek <buytenh at wantstofly.org>
Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
---
drivers/mtd/maps/physmap.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/mtd/maps/physmap.c b/drivers/mtd/maps/physmap.c
index 433c3ca..d6301f0 100644
--- a/drivers/mtd/maps/physmap.c
+++ b/drivers/mtd/maps/physmap.c
@@ -182,7 +182,7 @@ static struct physmap_flash_data physmap
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,
};
More information about the linux-mtd-cvs
mailing list