Skip to content
Commit 3a75f9f2 authored by Ard Biesheuvel's avatar Ard Biesheuvel
Browse files

efi: vars: Use locking version to iterate over efivars linked lists



Both efivars and efivarfs uses __efivar_entry_iter() to go over the
linked list that shadows the list of EFI variables held by the firmware,
but fail to call the begin/end helpers that are documented as a
prerequisite.

So switch to the proper version, which is efivar_entry_iter(). Given
that in both cases, efivar_entry_remove() is invoked with the lock held
already, don't take the lock there anymore.

Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
parent 85974825
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment