diff options
author | Brian Vazquez <[email protected]> | 2020-01-19 11:40:40 -0800 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2020-01-20 22:27:51 +0100 |
commit | 2e3a94aa2bfc6de95a0700f0a868c6f5db3a9592 (patch) | |
tree | 18ee2f84509602f1383c1dcf8a55d49130bb342e /drivers/usb/cdns3/cdns3-debug.h | |
parent | a6ed02cac690b635dbb938690e795812ce1e14ca (diff) |
bpf: Fix memory leaks in generic update/delete batch ops
Generic update/delete batch ops functions were using __bpf_copy_key
without properly freeing the memory. Handle the memory allocation and
copy_from_user separately.
Fixes: aa2e93b8e58e ("bpf: Add generic support for update and delete batch ops")
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Brian Vazquez <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Yonghong Song <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions