[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <4783C2E2.5060102@cosmosbay.com>
Date: Tue, 08 Jan 2008 19:37:22 +0100
From: Eric Dumazet <dada1@...mosbay.com>
To: "David S. Miller" <davem@...emloft.net>
CC: Linux Netdev List <netdev@...r.kernel.org>
Subject: [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()
Signed-off-by: Eric Dumazet <dada1@...mosbay.com>
include/net/xfrm.h | 7 ++++++-
net/xfrm/xfrm_user.c | 5 -----
2 files changed, 6 insertions(+), 6 deletions(-)
View attachment "xfrm_algo_clone.patch" of type "text/plain" (1075 bytes)
Powered by blists - more mailing lists