aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
diff options
context:
space:
mode:
authorJohn Fastabend <[email protected]>2021-07-12 19:55:45 +0000
committerDaniel Borkmann <[email protected]>2021-07-15 17:49:12 +0000
commit7e6b27a69167f97c56b5437871d29e9722c3e470 (patch)
tree410c90ca2c317060d065ba411c7fd8821256ec23 /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
parents390/bpf: Perform r1 range checking before accessing jit->seen_reg[r1] (diff)
downloadkernel-7e6b27a69167f97c56b5437871d29e9722c3e470.tar.gz
kernel-7e6b27a69167f97c56b5437871d29e9722c3e470.zip
bpf, sockmap: Fix potential memory leak on unlikely error case
If skb_linearize is needed and fails we could leak a msg on the error handling. To fix ensure we kfree the msg block before returning error. Found during code review. Fixes: 4363023d2668e ("bpf, sockmap: Avoid failures from skb_to_sgvec when skb has frag_list") Signed-off-by: John Fastabend <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Reviewed-by: Cong Wang <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c')
0 files changed, 0 insertions, 0 deletions