diff options
author | Aaro Koskinen <aaro.koskinen@nokia.com> | 2009-08-28 11:28:54 (GMT) |
---|---|---|
committer | Pekka Enberg <penberg@cs.helsinki.fi> | 2009-08-30 11:56:48 (GMT) |
commit | acdfcd04d9df7d084ff752f82afad6ed4ad5f363 (patch) | |
tree | edee979b012067348978d7ea23a58acd4b532a7d /net/sched/sch_red.c | |
parent | cf5d11317e8f2671d3115622aec76274a40f4fc2 (diff) | |
download | linux-fsl-qoriq-acdfcd04d9df7d084ff752f82afad6ed4ad5f363.tar.xz |
SLUB: fix ARCH_KMALLOC_MINALIGN cases 64 and 256
If the minalign is 64 bytes, then the 96 byte cache should not be created
because it would conflict with the 128 byte cache.
If the minalign is 256 bytes, patching the size_index table should not
result in a buffer overrun.
The calculation "(i - 1) / 8" used to access size_index[] is moved to
a separate function as suggested by Christoph Lameter.
Acked-by: Christoph Lameter <cl@linux-foundation.org>
Signed-off-by: Aaro Koskinen <aaro.koskinen@nokia.com>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Diffstat (limited to 'net/sched/sch_red.c')
0 files changed, 0 insertions, 0 deletions