diff options
author | Nishanth Menon <nm@ti.com> | 2012-01-05 09:08:11 -0600 |
---|---|---|
committer | Ziyann <jaraidaniel@gmail.com> | 2014-10-01 12:55:14 +0200 |
commit | 29e59ce6a21103b482dcac1eb974b5254f9a89fe (patch) | |
tree | ac913b908f3cd431d3c05c0afce80976f7df96e3 | |
parent | b30c9109481a98a7581cd68f3c2ad3dc141ddac6 (diff) | |
download | kernel_samsung_tuna-29e59ce6a21103b482dcac1eb974b5254f9a89fe.zip kernel_samsung_tuna-29e59ce6a21103b482dcac1eb974b5254f9a89fe.tar.gz kernel_samsung_tuna-29e59ce6a21103b482dcac1eb974b5254f9a89fe.tar.bz2 |
OMAP: ramconsole: fix offset by 1 error in recovery path
memblock_add in recovery path of omap_ram_console_register takes
size parameter which is end - start + 1 instead of just end - start.
Change-Id: Iceb88c41538e497611d94dc49e2fc2fff8ee4d30
Signed-off-by: Nishanth Menon <nm@ti.com>
-rw-r--r-- | arch/arm/mach-omap2/omap_ram_console.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/omap_ram_console.c b/arch/arm/mach-omap2/omap_ram_console.c index 03b87cd..e6ade19 100644 --- a/arch/arm/mach-omap2/omap_ram_console.c +++ b/arch/arm/mach-omap2/omap_ram_console.c @@ -61,7 +61,8 @@ int omap_ram_console_register(void) __func__, (u32)ram_console_resources[0].start, (u32)ram_console_resources[0].end, ret); memblock_add(ram_console_resources[0].start, - (ram_console_resources[0].end - ram_console_resources[0].start)); + (ram_console_resources[0].end - + ram_console_resources[0].start + 1)); } return ret; |