]> www.infradead.org Git - users/jedix/linux-maple.git/commit
efi: rci2: mark bin_attribute as __ro_after_init
authorThomas Weißschuh <linux@weissschuh.net>
Fri, 22 Nov 2024 10:31:15 +0000 (11:31 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Feb 2025 08:20:32 +0000 (09:20 +0100)
commite965efc4aa14d9195d26a956a6bff5041110a155
tree84f4c17f577fe90b199dfb382c1e2ae2972f1103
parent5d0fbf548cbfcd1d7559b2daddedbeaa212d477f
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: Thomas 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/firmware/efi/rci2-table.c