commit | 48f486e13ffdb49fbb9b38c21d0e108ed60ab1a2 | [log] [tgz] |
---|---|---|
author | Yu Kuai <yukuai3@huawei.com> | Tue Nov 10 09:14:43 2020 +0800 |
committer | Steffen Klassert <steffen.klassert@secunet.com> | Tue Nov 10 09:14:25 2020 +0100 |
tree | 9285c37baf8ff94289d9bc686b225c452a81c01f | |
parent | bc0230b6461c3c9105f94ff27394eafc632803e4 [diff] |
net: xfrm: fix memory leak in xfrm_user_policy() if xfrm_get_translator() failed, xfrm_user_policy() return without freeing 'data', which is allocated in memdup_sockptr(). Fixes: 96392ee5a13b ("xfrm/compat: Translate 32-bit user_policy from sockptr") Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Yu Kuai <yukuai3@huawei.com> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>