]> www.infradead.org Git - users/jedix/linux-maple.git/commit
of: Constify 'struct bin_attribute'
authorThomas Weißschuh <linux@weissschuh.net>
Sun, 22 Dec 2024 20:30:25 +0000 (21:30 +0100)
committerRob Herring (Arm) <robh@kernel.org>
Tue, 31 Dec 2024 13:55:16 +0000 (07:55 -0600)
commita6a035a83c104694fcec87da1304cb94513c7609
treeab455443a3f85718a46944429ce2962f78024467
parent4c2a458eb5c0de1ba120ac03374290068e39c418
of: 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/20241222-sysfs-const-bin_attr-of-v1-1-99cc2e8c2a55@weissschuh.net
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
drivers/of/kobj.c