• Ard Biesheuvel's avatar
    efi: vars: Use locking version to iterate over efivars linked lists · 3a75f9f2
    Ard Biesheuvel authored
    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>
    3a75f9f2
efivars.c 15.6 KB