Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 82f990a8 authored by Matt Fleming's avatar Matt Fleming
Browse files

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: default avatarArd Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Mike Waychison <mikew@google.com>
Signed-off-by: default avatarMatt Fleming <matt.fleming@intel.com>
parent f383d00a
Loading
Loading
Loading
Loading
+2 −6
Original line number Original line Diff line number Diff line
@@ -1040,12 +1040,8 @@ struct efivar_operations {
struct efivars {
struct efivars {
	/*
	/*
	 * ->lock protects two things:
	 * ->lock protects two things:
	 * 1) ->list - adds, removals, reads, writes
	 * 1) efivarfs_list and efivars_sysfs_list
	 * 2) ops.[gs]et_variable() calls.
	 * 2) ->ops calls
	 * It must not be held when creating sysfs entries or calling kmalloc.
	 * ops.get_next_variable() is only called from register_efivars()
	 * or efivar_update_sysfs_entries(),
	 * which is protected by the BKL, so that path is safe.
	 */
	 */
	spinlock_t lock;
	spinlock_t lock;
	struct kset *kset;
	struct kset *kset;