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