mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
[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 <[email protected]> Signed-off-by: Lennert Buytenhek <[email protected]> Signed-off-by: David Woodhouse <[email protected]>
This commit is contained in:
parent
ce5b0968b1
commit
6d4f8224d4
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue