diff options
author | Xiu Jianfeng <xiujianfeng@huawei.com> | 2022-06-14 12:00:01 +0300 |
---|---|---|
committer | John Johansen <john.johansen@canonical.com> | 2022-07-10 01:13:59 +0300 |
commit | 417ea9fe972d2654a268ad66e89c8fcae67017c3 (patch) | |
tree | 25481a3e42f8903bd8154c12e189f9ba29cbce47 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 11c3627ec6b56c1525013f336f41b79a983b4d46 (diff) | |
download | linux-417ea9fe972d2654a268ad66e89c8fcae67017c3.tar.xz |
apparmor: Fix memleak in aa_simple_write_to_buffer()
When copy_from_user failed, the memory is freed by kvfree. however the
management struct and data blob are allocated independently, so only
kvfree(data) cause a memleak issue here. Use aa_put_loaddata(data) to
fix this issue.
Fixes: a6a52579e52b5 ("apparmor: split load data into management struct and data blob")
Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions