From: Catalin Marinas Date: Sat, 22 Nov 2008 00:45:22 +0000 (-0800) Subject: net: Fix memory leak in the proto_register function X-Git-Tag: v2.6.28-rc8~73^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e56b5d698707a9934833c47b24d78fb0bcaf764;p=pandora-kernel.git net: Fix memory leak in the proto_register function If the slub allocator is used, kmem_cache_create() may merge two or more kmem_cache's into one but the cache name pointer is not updated and kmem_cache_name() is no longer guaranteed to return the pointer passed to the former function. This patch stores the kmalloc'ed pointers in the corresponding request_sock_ops and timewait_sock_ops structures. Signed-off-by: Catalin Marinas Acked-by: Arnaldo Carvalho de Melo Reviewed-by: Christoph Lameter Signed-off-by: David S. Miller --- Reading git-diff-tree failed