From 294a80a8ed004b383ab214837e1c05ca4098a717 Mon Sep 17 00:00:00 2001 From: Vegard Nossum Date: Tue, 4 Dec 2007 23:45:30 -0800 Subject: [PATCH] SLUB's ksize() fails for size > 2048 I can't pass memory allocated by kmalloc() to ksize() if it is allocated by SLUB allocator and size is larger than (I guess) PAGE_SIZE / 2. The error of ksize() seems to be that it does not check if the allocation was made by SLUB or the page allocator. Reviewed-by: Pekka Enberg Tested-by: Tetsuo Handa Cc: Christoph Lameter , Matt Mackall Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-format-patch failed