diff options
author | Colin Ian King <colin.king@canonical.com> | 2019-11-18 12:40:59 +0100 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2019-11-19 04:32:59 +0100 |
commit | a25ecd9d1e60241df905b29fb84765eb74545c4f (patch) | |
tree | e2a6c5499d70887a01d047fe3a37f80a8dc91e3a /arch/s390/net | |
parent | selftests, bpf: Workaround an alu32 sub-register spilling issue (diff) | |
download | linux-a25ecd9d1e60241df905b29fb84765eb74545c4f.tar.xz linux-a25ecd9d1e60241df905b29fb84765eb74545c4f.zip |
bpf: Fix memory leak on object 'data'
The error return path on when bpf_fentry_test* tests fail does not
kfree 'data'. Fix this by adding the missing kfree.
Addresses-Coverity: ("Resource leak")
Fixes: faeb2dce084a ("bpf: Add kernel test functions for fentry testing")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20191118114059.37287-1-colin.king@canonical.com
Diffstat (limited to 'arch/s390/net')
0 files changed, 0 insertions, 0 deletions