diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2006-06-27 14:38:15 +0100 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2006-06-27 14:38:15 +0100 |
commit | 6d4f8224d4ee065e0e3186cc554468d735e6015d (patch) | |
tree | c0b4107954701c9f34d638b7ec5e59b4bb279e89 /drivers | |
parent | ce5b0968b1caa6b93e366e88a3c5fa2fd59029ce (diff) | |
download | linux-stable-6d4f8224d4ee065e0e3186cc554468d735e6015d.tar.gz linux-stable-6d4f8224d4ee065e0e3186cc554468d735e6015d.tar.bz2 linux-stable-6d4f8224d4ee065e0e3186cc554468d735e6015d.zip |
[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@pengutronix.de>
Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | 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 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, }; |