X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=arch%2Fsh%2Fmm%2Fpmb.c;h=18623ba751b32e3863094bae05bcf44d58141f4b;hb=e4e47eb15b7884963efe7f98231009c5770a2c3d;hp=c0fdc217ece59ec77a035f98cf14da38bf0d1ff6;hpb=c7b03fa0bdc04e00bfbdc4cc69da144b11108f37;p=pandora-kernel.git diff --git a/arch/sh/mm/pmb.c b/arch/sh/mm/pmb.c index c0fdc217ece5..18623ba751b3 100644 --- a/arch/sh/mm/pmb.c +++ b/arch/sh/mm/pmb.c @@ -15,7 +15,6 @@ #include #include #include -#include #include #include #include @@ -342,6 +341,8 @@ int pmb_bolt_mapping(unsigned long vaddr, phys_addr_t phys, unsigned long flags, pmb_flags; int i, mapped; + if (size < SZ_16M) + return -EINVAL; if (!pmb_addr_valid(vaddr, size)) return -EFAULT; if (pmb_mapping_exists(vaddr, phys, size))