diff options
author | Yu Kuai <yukuai3@huawei.com> | 2020-11-10 04:14:43 +0300 |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2020-11-10 11:14:25 +0300 |
commit | 48f486e13ffdb49fbb9b38c21d0e108ed60ab1a2 (patch) | |
tree | 9285c37baf8ff94289d9bc686b225c452a81c01f /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | bc0230b6461c3c9105f94ff27394eafc632803e4 (diff) | |
download | linux-48f486e13ffdb49fbb9b38c21d0e108ed60ab1a2.tar.xz |
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>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions