diff options
| author | Thomas Weißschuh <linux@weissschuh.net> | 2024-12-21 17:48:13 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-12-24 11:36:02 +0300 |
| commit | 6a43faaa59bf0a2f2e8bb3d6ea76c86c3ef3eb6e (patch) | |
| tree | 2da9994c85b76a55ebfedbfe430d9f343b90804e /include/linux | |
| parent | e588522da8800a327fd9b9f46bd70394194fd9e2 (diff) | |
| download | linux-6a43faaa59bf0a2f2e8bb3d6ea76c86c3ef3eb6e.tar.xz | |
misc: eeprom/idt_89hpesx: 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/20241221-sysfs-const-bin_attr-misc-drivers-v2-7-ba5e79fe8771@weissschuh.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
