aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc
diff options
context:
space:
mode:
authorYu Kuai <[email protected]>2020-11-10 01:14:43 +0000
committerSteffen Klassert <[email protected]>2020-11-10 08:14:25 +0000
commit48f486e13ffdb49fbb9b38c21d0e108ed60ab1a2 (patch)
tree9285c37baf8ff94289d9bc686b225c452a81c01f /net/tipc
parentMerge branch 'xfrm/compat: syzbot-found fixes' (diff)
downloadkernel-48f486e13ffdb49fbb9b38c21d0e108ed60ab1a2.tar.gz
kernel-48f486e13ffdb49fbb9b38c21d0e108ed60ab1a2.zip
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 <[email protected]> Signed-off-by: Yu Kuai <[email protected]> Signed-off-by: Steffen Klassert <[email protected]>
Diffstat (limited to 'net/tipc')
0 files changed, 0 insertions, 0 deletions