commit | 0f99be0d115a5716292c58dfdb20d2eddd0f3387 | [log] [tgz] |
---|---|---|
author | Eric Dumazet <dada1@cosmosbay.com> | Tue Jan 08 23:39:06 2008 -0800 |
committer | David S. Miller <davem@davemloft.net> | Tue Jan 08 23:39:06 2008 -0800 |
tree | a4c8fc6262add152fa7207e40a5f02b18c9bedde | |
parent | 2e3884b5b16795c03a7bf295797c1b2402885b88 [diff] |
[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>