diff options
| author | Thomas Weißschuh <linux@weissschuh.net> | 2024-12-02 20:02:21 +0100 |
|---|---|---|
| committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2024-12-04 22:19:13 +0100 |
| commit | 8159fcb12862f826a26964d8b814ad33e69ba4de (patch) | |
| tree | ab9376f11e57e3f683950c30d73c95e2d83399d9 /tools/perf/scripts/python/net_dropmonitor.py | |
| parent | power: supply: ds2780: constify 'struct bin_attribute' (diff) | |
| download | linux-8159fcb12862f826a26964d8b814ad33e69ba4de.tar.gz linux-8159fcb12862f826a26964d8b814ad33e69ba4de.zip | |
power: supply: ds2781: 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-psy-v1-3-f846430b8b66@weissschuh.net
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions
