Eric Dumazet 0f99be0d11 [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 <dada1@cosmosbay.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
2008-01-08 23:39:06 -08:00
..
2007-12-20 13:56:32 -08:00
2007-10-10 16:53:11 -07:00
2006-12-02 21:22:55 -08:00
2007-12-20 13:56:32 -08:00
2007-10-10 16:53:56 -07:00
2007-11-02 08:47:06 +01:00
2007-07-10 22:15:41 -07:00
2007-10-10 16:51:28 -07:00
2007-10-15 12:26:42 -07:00
2006-03-20 22:59:36 -08:00
2007-11-10 22:01:15 -08:00
2007-10-07 23:44:17 -07:00
2007-10-10 16:51:28 -07:00
2007-11-18 18:48:08 -08:00
2007-06-07 13:40:50 -07:00