diff options
| author | Thomas Weißschuh <[email protected]> | 2024-12-02 19:04:10 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2024-12-10 18:34:41 +0000 |
| commit | d16d7e91ed31f08903c698db42bbabe3dd454e07 (patch) | |
| tree | c7849d87e961a0714c1dde6d72d027ac271ee15a /drivers/acpi/utils.c | |
| parent | ACPI: BGRT: Mark bin_attribute as __ro_after_init (diff) | |
| download | kernel-d16d7e91ed31f08903c698db42bbabe3dd454e07.tar.gz kernel-d16d7e91ed31f08903c698db42bbabe3dd454e07.zip | |
ACPI: BGRT: 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 <[email protected]>
Link: https://patch.msgid.link/20241202-sysfs-const-bin_attr-acpi-v1-2-78f3b38d350d@weissschuh.net
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'drivers/acpi/utils.c')
0 files changed, 0 insertions, 0 deletions
