Skip to content

Commit

Permalink
[MTD] Fix off-by-one error in physmap.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sascha Hauer authored and David Woodhouse committed Jun 27, 2006
1 parent ce5b096 commit 6d4f822
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/maps/physmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};

Expand Down

0 comments on commit 6d4f822

Please sign in to comment.