summaryrefslogtreecommitdiff
path: root/include/linux/dsa
diff options
context:
space:
mode:
authorXiu Jianfeng <xiujianfeng@huawei.com>2022-10-28 15:33:20 +0300
committerJohn Johansen <john.johansen@canonical.com>2022-11-01 15:32:13 +0300
commite9e6fa49dbab6d84c676666f3fe7d360497fd65b (patch)
tree3f051f39d83e887cf281e24fa11fd792f2f8ff34 /include/linux/dsa
parent3265949f7cd36a724a35020202c618094be1cf28 (diff)
downloadlinux-e9e6fa49dbab6d84c676666f3fe7d360497fd65b.tar.xz
apparmor: Fix memleak in alloc_ns()
After changes in commit a1bd627b46d1 ("apparmor: share profile name on replacement"), the hname member of struct aa_policy is not valid slab object, but a subset of that, it can not be freed by kfree_sensitive(), use aa_policy_destroy() to fix it. Fixes: a1bd627b46d1 ("apparmor: share profile name on replacement") Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com> Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'include/linux/dsa')
0 files changed, 0 insertions, 0 deletions