summaryrefslogtreecommitdiffstats
path: root/include/asm-x86_64
diff options
context:
space:
mode:
authorChristoph Lameter <clameter@engr.sgi.com>2005-09-23 06:44:10 +0200
committerLinus Torvalds <torvalds@g5.osdl.org>2005-09-23 07:17:36 +0200
commiteafb42707b21beb42bba4eae7b742f837ee9d2e0 (patch)
treea2b4f7042bb622ecbe8aaa003a96a6024d8bbc00 /include/asm-x86_64
parent[PATCH] mesh scsi: fix error handling (diff)
downloadlinux-eafb42707b21beb42bba4eae7b742f837ee9d2e0.tar.xz
linux-eafb42707b21beb42bba4eae7b742f837ee9d2e0.zip
[PATCH] __kmalloc: Generate BUG if size requested is too large.
I had an issue on ia64 where I got a bug in kernel/workqueue because kzalloc returned a NULL pointer due to the task structure getting too big for the slab allocator. Usually these cases are caught by the kmalloc macro in include/linux/slab.h. Compilation will fail if a too big value is passed to kmalloc. However, kzalloc uses __kmalloc which has no check for that. This patch makes __kmalloc bug if a too large entity is requested. Signed-off-by: Christoph Lameter <clameter@sgi.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-x86_64')
0 files changed, 0 insertions, 0 deletions