]> www.infradead.org Git - users/jedix/linux-maple.git/commit
firmware: dmi: Mark bin_attributes as __ro_after_init
authorThomas Weißschuh <linux@weissschuh.net>
Sat, 25 Jan 2025 10:12:14 +0000 (11:12 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Feb 2025 08:20:30 +0000 (09:20 +0100)
commit14e694dbf285e74af97d50212e3272d0d22ea653
tree9a88298c1337cd30f45f10d47f6bea271c7da467
parent7de24e20a7aa83295e567982b0b29f3b53152759
firmware: dmi: Mark bin_attributes as __ro_after_init

The attributes are only modified during the __init phase.
Protect them against accidental or intentional modifications afterwards.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Link: https://lore.kernel.org/r/20250125-sysfs-const-bin_attr-dmi-v2-1-ece1895936f4@weissschuh.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/firmware/dmi_scan.c