diff options
author | Thomas Weißschuh <linux@weissschuh.net> | 2025-01-14 22:25:14 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-02-21 09:20:30 +0100 |
commit | 7de24e20a7aa83295e567982b0b29f3b53152759 (patch) | |
tree | 278a585e6f1491d7869652b53dacb13c3613b644 /tools/perf/scripts/python | |
parent | 1d2d45b62784e81b6e08ec0ab7cca4eaa23ff581 (diff) |
cxl/port: 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: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/20250114-sysfs-const-bin_attr-cxl-v1-1-5afa23fe2a52@weissschuh.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions