aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/platform/x86/intel/pmt/class.c
diff options
context:
space:
mode:
authorThomas Weißschuh <linux@weissschuh.net>2024-12-02 20:38:32 +0100
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>2024-12-17 13:11:42 +0200
commitc0cc60b39269395b0a55c3ea8825690ec756d18e (patch)
tree55d2eb0d81e4d7186124f59922da3fc5f8b10883 /drivers/platform/x86/intel/pmt/class.c
parentMerge branch 'platform-drivers-x86-platform-profile' into for-next (diff)
downloadwireguard-linux-c0cc60b39269395b0a55c3ea8825690ec756d18e.tar.xz
wireguard-linux-c0cc60b39269395b0a55c3ea8825690ec756d18e.zip
platform/x86: dell: dcdbas: 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. While at it switch from the custom DCDBAS_BIN_ATTR_RW() to the identical BIN_ATTR_RW() macro. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Link: https://lore.kernel.org/r/20241202-sysfs-const-bin_attr-pdx86-v1-1-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