]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
fix locking in efi_secret_unlink()
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 14 May 2024 14:48:58 +0000 (08:48 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:28:15 +0000 (16:28 +0200)
commit270ea0b617251d89b79ef36b8ef3b02fb1e6a04d
tree7facf0fd9203808f567fb644eb52d8d53fabd5bf
parent327276cb8a7eb15a85e3f2fac7cd953c42afadd2
fix locking in efi_secret_unlink()

[ Upstream commit 2c58d42de71f9c73e40afacc9d062892d2cc8862 ]

We used to need securityfs_remove() to undo simple_pin_fs() done when
the file had been created and to drop the second extra reference
taken at the same time.  Now that neither is needed (or done by
securityfs_remove()), we can simply call simple_unlink() and be done
with that - the broken games with locking had been there only for the
sake of securityfs_remove().

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/virt/coco/efi_secret/efi_secret.c