[XTENSA] Fix modules for non-exec processor configurations
[pandora-kernel.git] / arch / xtensa / kernel / module.c
index ddf14dc..3981a46 100644 (file)
@@ -28,7 +28,7 @@ void *module_alloc(unsigned long size)
 {
        if (size == 0)
                return NULL;
-       return vmalloc(size);
+       return vmalloc_exec(size);
 }
 
 void module_free(struct module *mod, void *module_region)