From: Eric Dumazet Date: Wed, 9 Jan 2008 07:39:06 +0000 (-0800) Subject: [XFRM]: xfrm_algo_clone() allocates too much memory X-Git-Tag: v2.6.24-rc8~54^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f99be0d115a5716292c58dfdb20d2eddd0f3387;p=pandora-kernel.git [XFRM]: xfrm_algo_clone() allocates too much memory alg_key_len is the length in bits of the key, not in bytes. Best way to fix this is to move alg_len() function from net/xfrm/xfrm_user.c to include/net/xfrm.h, and to use it in xfrm_algo_clone() alg_len() is renamed to xfrm_alg_len() because of its global exposition. Signed-off-by: Eric Dumazet Signed-off-by: Herbert Xu Signed-off-by: David S. Miller --- Reading git-diff-tree failed