Commit 55efe793 authored by Yu Kuai's avatar Yu Kuai Committed by Greg Kroah-Hartman
Browse files

UPSTREAM: 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: 96392ee5 ("xfrm/compat: Translate 32-bit user_policy from sockptr")
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarYu Kuai <yukuai3@huawei.com>
Signed-off-by: default avatarSteffen Klassert <steffen.klassert@secunet.com>
(cherry picked from commit 48f486e1)
Bug: 187129171
Signed-off-by: default avatarConnor O'Brien <connoro@google.com>
Change-Id: I74370c8d7938cea10d1bb0a40ed47bbdd869b99a
parent 8c476c55
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment