Commit e965efc4 authored by Thomas Weißschuh's avatar Thomas Weißschuh Committed by Greg Kroah-Hartman
Browse files

efi: rci2: mark bin_attribute as __ro_after_init



The attribute is only modified during __init phase.
Protect it against accidental or intentional modifications afterwards.

Signed-off-by: default avatarThomas Weißschuh <linux@weissschuh.net>
Link: https://lore.kernel.org/r/20241122-sysfs-const-bin_attr-rci2-v1-1-3db1ec9aa203@weissschuh.net


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5d0fbf54
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -40,7 +40,7 @@ static u8 *rci2_base;
static u32 rci2_table_len;
unsigned long rci2_table_phys __ro_after_init = EFI_INVALID_TABLE_ADDR;

static BIN_ATTR_SIMPLE_ADMIN_RO(rci2);
static __ro_after_init BIN_ATTR_SIMPLE_ADMIN_RO(rci2);

static u16 checksum(void)
{