Merge remote-tracking branches 'regulator/topic/mt6397', 'regulator/topic/of', 'regul...
[cascardo/linux.git] / arch / arm / mm / pageattr.c
index cf30daf..d19b1ad 100644 (file)
@@ -49,6 +49,9 @@ static int change_memory_common(unsigned long addr, int numpages,
                WARN_ON_ONCE(1);
        }
 
+       if (!numpages)
+               return 0;
+
        if (start < MODULES_VADDR || start >= MODULES_END)
                return -EINVAL;