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

Then, in commit de7d2b567d040e3b, 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
..
2008-03-15 19:12:19 -07:00
2009-01-05 19:18:27 +00:00
2011-03-31 11:26:23 -03:00
2012-05-07 11:38:46 +02:00
2012-12-14 13:06:43 +10:30
2005-04-16 15:20:36 -07:00
2012-07-05 15:09:13 -06:00
2012-08-13 16:50:19 -07:00
2010-10-16 22:43:08 +02:00
2012-03-28 18:30:02 +01:00
2008-10-10 16:32:28 +00:00
2005-04-16 15:20:36 -07:00
2012-03-28 18:30:02 +01:00