diff options
author | 2024-03-28 20:16:58 +0100 | |
---|---|---|
committer | 2024-04-01 23:32:35 -0400 | |
commit | 37801a36b4d68892ce807264f784d818f8d0d39b (patch) | |
tree | f30921a08fef5c3237716ba481a00d51fb2e03db /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Linux 6.9-rc1 (diff) | |
download | wireguard-linux-37801a36b4d68892ce807264f784d818f8d0d39b.tar.xz wireguard-linux-37801a36b4d68892ce807264f784d818f8d0d39b.zip |
selinux: avoid dereference of garbage after mount failure
In case kern_mount() fails and returns an error pointer return in the
error branch instead of continuing and dereferencing the error pointer.
While on it drop the never read static variable selinuxfs_mount.
Cc: stable@vger.kernel.org
Fixes: 0619f0f5e36f ("selinux: wrap selinuxfs state")
Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions