fix locking in efi_secret_unlink()
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 14 May 2024 14:48:58 +0000 (08:48 -0600)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 11 Jun 2025 22:00:31 +0000 (18:00 -0400)
commit2c58d42de71f9c73e40afacc9d062892d2cc8862
treee29faa87924819c287dd10d7fb1d472480fe359a
parente4de72650202e3da56b107f8e537d2b4a0341e40
fix locking in efi_secret_unlink()

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>
drivers/virt/coco/efi_secret/efi_secret.c