diff options
author | Christoph Lameter <cl@linux.com> | 2013-05-03 15:43:18 (GMT) |
---|---|---|
committer | Pekka Enberg <penberg@kernel.org> | 2013-05-06 06:24:16 (GMT) |
commit | 6286ae97d10ea2b5cd90532163797ab217bfdbdf (patch) | |
tree | 0724efb47d735ce835709d2402de02de4dd61f07 /net/nfc/llcp | |
parent | 14e50c6a9bc2b283bb4021026226268312ceefdd (diff) | |
download | linux-fsl-qoriq-6286ae97d10ea2b5cd90532163797ab217bfdbdf.tar.xz |
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 <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: Christoph Lameter <cl@linux.com>
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 <penberg@kernel.org>
Diffstat (limited to 'net/nfc/llcp')
0 files changed, 0 insertions, 0 deletions