commit | 3e0c2ab67e48f77c2da0a5c826aac397792a214e | [log] [tgz] |
---|---|---|
author | Christoph Lameter <cl@linux.com> | Fri May 20 09:42:48 2011 -0500 |
committer | Pekka Enberg <penberg@kernel.org> | Sat May 21 12:53:53 2011 +0300 |
tree | 937d195659cb72bbd038907e36b23e5c0e7c262d | |
parent | 442b06bcea23a01934d3da7ec5898fa154a6cafb [diff] |
slub: Deal with hyperthetical case of PAGE_SIZE > 2M kmalloc_index() currently returns -1 if the PAGE_SIZE is larger than 2M which seems to cause some concern since the callers do not check for -1. Insert a BUG() and add a comment to the -1 explaining that the code cannot be reached. Signed-off-by: Christoph Lameter <cl@linux.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>