diff options
author | Thomas Weißschuh <linux@weissschuh.net> | 2024-12-02 22:38:33 +0300 |
---|---|---|
committer | Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> | 2024-12-17 14:12:49 +0300 |
commit | fbabd3dbb55fc46392193a2e3c0366905b2b26f9 (patch) | |
tree | e37f7a82ab19ca7724ebbe7a49398d81c9a121fa /drivers/platform/x86/intel/pmt/class.c | |
parent | c0cc60b39269395b0a55c3ea8825690ec756d18e (diff) | |
download | linux-fbabd3dbb55fc46392193a2e3c0366905b2b26f9.tar.xz |
platform/x86: dell_rbu: 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/20241202-sysfs-const-bin_attr-pdx86-v1-2-9ab204c2a814@weissschuh.net
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Diffstat (limited to 'drivers/platform/x86/intel/pmt/class.c')
0 files changed, 0 insertions, 0 deletions