[XFRM]: xfrm_algo_clone() allocates too much memory
authorEric Dumazet <dada1@cosmosbay.com>
Wed, 9 Jan 2008 07:39:06 +0000 (23:39 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Jan 2008 07:39:06 +0000 (23:39 -0800)
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>

No differences found