From: Kirill A. Shutemov Date: Tue, 24 Mar 2015 02:01:40 +0000 (+1030) Subject: module: do not print allocation-fail warning on bogus user buffer size X-Git-Tag: omap-for-v4.2/o2_dc~44^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc9e605dc6cb2e32fedae4ac2f61ad3b5f8d623d;p=pandora-kernel.git module: do not print allocation-fail warning on bogus user buffer size init_module(2) passes user-specified buffer length directly to vmalloc(). It makes warn_alloc_failed() to print out a lot of info into dmesg if user specified insane size, like -1. Let's silence the warning. It doesn't add much value to -ENOMEM return code. Without the patch the syscall is prohibitive noisy for testing with trinity. Signed-off-by: Kirill A. Shutemov Cc: Dave Jones Cc: Sasha Levin Signed-off-by: Rusty Russell --- Reading git-diff-tree failed