]> git.ipfire.org Git - thirdparty/linux.git/commit
platform/chrome: cros_ec_vbc: Constify 'struct bin_attribute'
authorThomas Weißschuh <linux@weissschuh.net>
Sun, 15 Dec 2024 13:29:15 +0000 (14:29 +0100)
committerTzung-Bi Shih <tzungbi@kernel.org>
Mon, 30 Dec 2024 01:31:05 +0000 (01:31 +0000)
commit6fcbc55a6afb21ccfaa4de1426b22a5e25331506
treec3f3b795e9f35b25dbc07ddb6f8805ad17373e57
parent033fceedca9178f137ee5f6652e0f734199b1c96
platform/chrome: cros_ec_vbc: 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/20241215-sysfs-const-bin_attr-chrome-v1-1-92249c4bc295@weissschuh.net
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
drivers/platform/chrome/cros_ec_vbc.c