diff options
| author | Thomas Weißschuh <[email protected]> | 2024-12-16 11:34:47 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2025-02-21 08:20:31 +0000 |
| commit | 7787bfb3b0ea62432d3ffcd31eb66daec4b462ba (patch) | |
| tree | d512266d7c7c31eae36935a5ba78ba41808ff0cb /drivers/gpu/drm/lima/lima_drv.c | |
| parent | firmware: dmi: Constify 'struct bin_attribute' (diff) | |
| download | kernel-7787bfb3b0ea62432d3ffcd31eb66daec4b462ba.tar.gz kernel-7787bfb3b0ea62432d3ffcd31eb66daec4b462ba.zip | |
drm/sysfs: 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: Jani Nikula <[email protected]>
Reviewed-by: Andi Shyti <[email protected]>
Link: https://lore.kernel.org/r/20241216-sysfs-const-bin_attr-drm-v1-1-210f2b36b9bf@weissschuh.net
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/lima/lima_drv.c')
0 files changed, 0 insertions, 0 deletions
