]> www.infradead.org Git - users/jedix/linux-maple.git/commit
firmware: google: gsmi: Constify 'struct bin_attribute'
authorThomas Weißschuh <linux@weissschuh.net>
Sun, 15 Dec 2024 14:49:10 +0000 (15:49 +0100)
committerTzung-Bi Shih <tzungbi@kernel.org>
Tue, 17 Dec 2024 03:59:31 +0000 (03:59 +0000)
commit7da14dea76fb6a90f62938e6dfa9f34c980af358
tree565e0e6a5da49447e2d757ebff0bcdd7145188f2
parentbf2066caee80c1612cb5a3356dc16a7a298f58ab
firmware: google: gsmi: 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>
Acked-by: Brian Norris <briannorris@chromium.org>
Link: https://lore.kernel.org/r/20241215-sysfs-const-bin_attr-google-v1-2-e5c2808f5833@weissschuh.net
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
drivers/firmware/google/gsmi.c