diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-19 14:36:03 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-19 14:36:03 -0400 |
commit | 7c7cbaf5b82c418cd3b1dcf718f71d0e6057e639 (patch) | |
tree | da9aaa5a246af464b1e10d88618c1cad07b76314 /arch/sh/mm/pmb.c | |
parent | ba0234ec35127fe21d373db53cbaf9fe20620cb6 (diff) | |
parent | 4d0956b8f597aac10208ca763f8fe641fde16aab (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6: (127 commits)
sh: update defconfigs.
sh: Fix up the NUMA build for recent LMB changes.
sh64: provide a stub per_cpu_trap_init() definition.
sh: fix up CONFIG_KEXEC=n build.
sh: fixup the docbook paths for clock framework shuffling.
driver core: Early dev_name() depends on slab_is_available().
sh: simplify WARN usage in SH clock driver
sh: Check return value of clk_get on ms7724
sh: Check return value of clk_get on ecovec24
sh: move sh clock-cpg.c contents to drivers/sh/clk-cpg.c
sh: move sh clock.c contents to drivers/sh/clk.
sh: move sh asm/clock.h contents to linux/sh_clk.h V2
sh: remove unused clock lookup
sh: switch boards to clkdev
sh: switch sh4-202 to clkdev
sh: switch shx3 to clkdev
sh: switch sh7757 to clkdev
sh: switch sh7763 to clkdev
sh: switch sh7780 to clkdev
sh: switch sh7786 to clkdev
...
Diffstat (limited to 'arch/sh/mm/pmb.c')
-rw-r--r-- | arch/sh/mm/pmb.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/sh/mm/pmb.c b/arch/sh/mm/pmb.c index e43ec600afcf..18623ba751b3 100644 --- a/arch/sh/mm/pmb.c +++ b/arch/sh/mm/pmb.c | |||
@@ -341,6 +341,8 @@ int pmb_bolt_mapping(unsigned long vaddr, phys_addr_t phys, | |||
341 | unsigned long flags, pmb_flags; | 341 | unsigned long flags, pmb_flags; |
342 | int i, mapped; | 342 | int i, mapped; |
343 | 343 | ||
344 | if (size < SZ_16M) | ||
345 | return -EINVAL; | ||
344 | if (!pmb_addr_valid(vaddr, size)) | 346 | if (!pmb_addr_valid(vaddr, size)) |
345 | return -EFAULT; | 347 | return -EFAULT; |
346 | if (pmb_mapping_exists(vaddr, phys, size)) | 348 | if (pmb_mapping_exists(vaddr, phys, size)) |
@@ -680,7 +682,7 @@ static void __init pmb_merge(struct pmb_entry *head) | |||
680 | /* | 682 | /* |
681 | * The merged page size must be valid. | 683 | * The merged page size must be valid. |
682 | */ | 684 | */ |
683 | if (!pmb_size_valid(newsize)) | 685 | if (!depth || !pmb_size_valid(newsize)) |
684 | return; | 686 | return; |
685 | 687 | ||
686 | head->flags &= ~PMB_SZ_MASK; | 688 | head->flags &= ~PMB_SZ_MASK; |