aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorOndrej Mosnacek <omosnace@redhat.com>2022-05-17 14:08:16 +0200
committerPaul Moore <paul@paul-moore.com>2022-05-17 18:34:35 -0400
commit6254bd3db316c9ccb3b05caa8b438be63245466f (patch)
treeccbc625604a64e01eafc773a0c3fa7f66df6e14a /scripts/generate_rust_analyzer.py
parentLinux 5.18-rc7 (diff)
downloadwireguard-linux-6254bd3db316c9ccb3b05caa8b438be63245466f.tar.xz
wireguard-linux-6254bd3db316c9ccb3b05caa8b438be63245466f.zip
selinux: fix bad cleanup on error in hashtab_duplicate()
The code attempts to free the 'new' pointer using kmem_cache_free(), which is wrong because this function isn't responsible of freeing it. Instead, the function should free new->htable and clear the contents of *new (to prevent double-free). Cc: stable@vger.kernel.org Fixes: c7c556f1e81b ("selinux: refactor changing booleans") Reported-by: Wander Lairson Costa <wander@redhat.com> Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions