From: Christoph Lameter Date: Fri, 3 May 2013 15:43:18 +0000 (+0000) Subject: slab: Return NULL for oversized allocations X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~15^2^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6286ae97d10ea2b5cd90532163797ab217bfdbdf;p=pandora-kernel.git slab: Return NULL for oversized allocations The inline path seems to have changed the SLAB behavior for very large kmalloc allocations with commit e3366016 ("slab: Use common kmalloc_index/kmalloc_size functions"). This patch restores the old behavior but also adds diagnostics so that we can figure where in the code these large allocations occur. Reported-and-tested-by: Tetsuo Handa Signed-off-by: Christoph Lameter Link: http://lkml.kernel.org/r/201305040348.CIF81716.OStQOHFJMFLOVF@I-love.SAKURA.ne.jp [ penberg@kernel.org: use WARN_ON_ONCE ] Signed-off-by: Pekka Enberg --- Reading git-diff-tree failed