diff options
author | Thomas Weißschuh <linux@weissschuh.net> | 2024-12-16 12:34:49 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-02-21 09:20:31 +0100 |
commit | e3626a456599304f59f827494746940ec025ad6f (patch) | |
tree | ca33811c145a7e1e9059c3faa1f129fb40e9f2b4 /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | |
parent | cf3864d84fe98b7f7ff37a90156c3fc8f2c0067e (diff) | |
download | linux-e3626a456599304f59f827494746940ec025ad6f.tar.gz linux-e3626a456599304f59f827494746940ec025ad6f.tar.bz2 linux-e3626a456599304f59f827494746940ec025ad6f.zip |
drm/i915: 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: Andi Shyti <andi.shyti@linux.intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Link: https://lore.kernel.org/r/20241216-sysfs-const-bin_attr-drm-v1-3-210f2b36b9bf@weissschuh.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c')
0 files changed, 0 insertions, 0 deletions