aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base/class.c
diff options
context:
space:
mode:
authorThomas Weißschuh <[email protected]>2024-12-22 20:20:50 +0000
committerGreg Kroah-Hartman <[email protected]>2025-01-10 09:15:11 +0000
commitc1ecb860a48d0bf56b0fc8391c5d59b0c3b42516 (patch)
tree8d79f60f1961de9400e3b0c0436fa9d8f59a57f0 /drivers/base/class.c
parentdevcoredump: cleanup some comments (diff)
downloadkernel-c1ecb860a48d0bf56b0fc8391c5d59b0c3b42516.tar.gz
kernel-c1ecb860a48d0bf56b0fc8391c5d59b0c3b42516.zip
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 <[email protected]> Reviewed-by: Russ Weight <[email protected]> Link: https://lore.kernel.org/r/20241222-sysfs-const-bin_attr-firmware-v1-1-c35e56bfb4eb@weissschuh.net Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/base/class.c')
0 files changed, 0 insertions, 0 deletions