diff options
author | Thomas Weißschuh <linux@weissschuh.net> | 2024-12-22 21:20:50 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-01-10 10:15:11 +0100 |
commit | c1ecb860a48d0bf56b0fc8391c5d59b0c3b42516 (patch) | |
tree | 8d79f60f1961de9400e3b0c0436fa9d8f59a57f0 /scripts/lib/kdoc/kdoc_files.py | |
parent | 2a8d6abdf5cfdc7df934968f2e8292d050f20b20 (diff) |
firmware_loader: 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>
Reviewed-by: Russ Weight <russ.weight@linux.dev>
Link: https://lore.kernel.org/r/20241222-sysfs-const-bin_attr-firmware-v1-1-c35e56bfb4eb@weissschuh.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions