linux/arch/unicore32
Rusty Russell 82fab442f5 modules: don't hand 0 to vmalloc.
In commit d0a21265df David Rientjes unified various archs'
module_alloc implementation (including x86) and removed the graduitous
shortcut for size == 0.

Then, in commit de7d2b567d, Joe Perches added a warning for
zero-length vmallocs, which can happen without kallsyms on modules
with no init sections (eg. zlib_deflate).

Fix this once and for all; the module code has to handle zero length
anyway, so get it right at the caller and remove the now-gratuitous
checks within the arch-specific module_alloc implementations.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=42608
Reported-by: Conrad Kostecki <ConiKost@gmx.de>
Cc: David Rientjes <rientjes@google.com>
Cc: Joe Perches <joe@perches.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2012-12-14 13:06:43 +10:30
..
boot Kbuild: centralize MKIMAGE and cmd_uimage definitions 2012-03-26 15:49:20 +02:00
configs unicore32: add KBUILD_DEFCONFIG with unicore32_defconfig (old debug_defconfig) 2011-06-09 16:24:42 +08:00
include unicore32: switch to generic sys_execve() 2012-11-09 17:30:10 +08:00
kernel modules: don't hand 0 to vmalloc. 2012-12-14 13:06:43 +10:30
lib unicore32: fix build error for find bitops 2011-11-15 17:13:14 +08:00
mm unicore32/mm/fault.c: Port OOM changes to do_pf 2012-11-09 17:30:08 +08:00
.gitignore unicore32 core architecture: build infrastructure 2011-03-17 09:19:05 +08:00
Kconfig arch/unicore32: remove CONFIG_EXPERIMENTAL 2012-11-09 17:30:10 +08:00
Kconfig.debug unicore32: drop unused Kconfig symbols 2011-11-15 17:13:18 +08:00
Makefile unicore32: Use generic init_task 2012-05-05 13:00:26 +02:00