diff options
author | Thomas Weißschuh <linux@weissschuh.net> | 2024-12-22 21:15:55 +0100 |
---|---|---|
committer | Pratyush Yadav <pratyush@kernel.org> | 2025-01-13 17:47:03 +0000 |
commit | 943e5f85600708c348f7b23d3c1cff1cf9763032 (patch) | |
tree | 5f4a0283187210f2815c2e22110946fd0d44ced9 /scripts/gdb/linux/utils.py | |
parent | b239cbc7b078ff9c8b218c6191550ae28763fdaa (diff) |
mtd: spi-nor: sysfs: 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>
Acked-by: Pratyush Yadav <pratyush@kernel.org>
Signed-off-by: Pratyush Yadav <pratyush@kernel.org>
Link: https://lore.kernel.org/r/20241222-sysfs-const-bin_attr-mtd-v1-1-ee13140a4e9b@weissschuh.net
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions