linux/arch/cris/kernel
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
..
asm-offsets.c drop explicit include of autoconf.h 2009-12-12 13:08:15 +01:00
crisksyms.c Generic semaphore implementation 2008-04-17 10:42:34 -04:00
irq.c Disintegrate asm/system.h for CRIS 2012-03-28 18:30:02 +01:00
Makefile arm, cris, mips, sparc, powerpc, um, xtensa: fix build with bash 4.0 2009-09-20 12:28:22 +02:00
module.c modules: don't hand 0 to vmalloc. 2012-12-14 13:06:43 +10:30
process.c cris: Add missing RCU idle APIs on idle loop 2012-09-23 07:44:44 -07:00
profile.c llseek: automatically add .llseek fop 2010-10-15 15:53:27 +02:00
ptrace.c move key_repace_session_keyring() into tracehook_notify_resume() 2012-05-23 22:09:20 -04:00
setup.c Disintegrate asm/system.h for CRIS 2012-03-28 18:30:02 +01:00
sys_cris.c Add generic sys_ipc wrapper 2010-03-12 15:52:32 -08:00
time.c CRIS: Remove legacy RTC drivers 2012-04-05 11:55:58 +02:00
traps.c Disintegrate asm/system.h for CRIS 2012-03-28 18:30:02 +01:00
vmlinux.lds.S CRIS: Add _sdata to vmlinux.lds.S 2012-04-03 13:26:33 +02:00