Skip to content

Commit 82f990a

Browse files
author
Matt Fleming
committed
efi: Update stale locking comment for struct efivars
The comment describing how struct efivars->lock is used hasn't been updated in sync with the code. Fix it. Reported-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Cc: Mike Waychison <mikew@google.com> Signed-off-by: Matt Fleming <matt.fleming@intel.com>
1 parent f383d00 commit 82f990a

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

‎include/linux/efi.h‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,12 +1040,8 @@ struct efivar_operations {
10401040
struct efivars {
10411041
/*
10421042
* ->lock protects two things:
1043-
* 1) ->list - adds, removals, reads, writes
1044-
* 2) ops.[gs]et_variable() calls.
1045-
* It must not be held when creating sysfs entries or calling kmalloc.
1046-
* ops.get_next_variable() is only called from register_efivars()
1047-
* or efivar_update_sysfs_entries(),
1048-
* which is protected by the BKL, so that path is safe.
1043+
* 1) efivarfs_list and efivars_sysfs_list
1044+
* 2) ->ops calls
10491045
*/
10501046
spinlock_t lock;
10511047
struct kset *kset;

0 commit comments

Comments
 (0)