]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ACPI: sysfs: Constify 'struct bin_attribute'
authorThomas Weißschuh <linux@weissschuh.net>
Mon, 2 Dec 2024 19:04:11 +0000 (20:04 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 10 Dec 2024 18:34:41 +0000 (19:34 +0100)
commit7349678b84552d15866c1a118535663e9dbb6768
tree7a68bbf6c445637d0c20bb3147d2cf9999f96df9
parentd16d7e91ed31f08903c698db42bbabe3dd454e07
ACPI: 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>
Link: https://patch.msgid.link/20241202-sysfs-const-bin_attr-acpi-v1-3-78f3b38d350d@weissschuh.net
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/sysfs.c