]> www.infradead.org Git - users/jedix/linux-maple.git/commit
firmware: dmi: Constify 'struct bin_attribute'
authorThomas Weißschuh <linux@weissschuh.net>
Sat, 25 Jan 2025 10:12:16 +0000 (11:12 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Feb 2025 08:20:30 +0000 (09:20 +0100)
commit1c83b02c91c1cc42c3030788f437fe403c7e3b37
treef9cf6fb105c2fd7e0869653aff5ddbd91b38cf47
parent80d3989b9ce3b05f7a12cc5c4c8c565fc4ed88f2
firmware: dmi: Constify 'struct bin_attribute'

The sysfs core now allows instances of 'struct bin_attribute' to be
moved into read-only memory. Make use of that to protect them against
accidental or malicious modifications.

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