]> www.infradead.org Git - users/jedix/linux-maple.git/commit
HID: roccat: common, konepure, ryos, savu: constify 'struct bin_attribute'
authorThomas Weißschuh <linux@weissschuh.net>
Mon, 2 Dec 2024 19:01:34 +0000 (20:01 +0100)
committerJiri Kosina <jkosina@suse.com>
Wed, 11 Dec 2024 14:11:04 +0000 (15:11 +0100)
commit66f58ab4273d0df6c732fe9bceffdab9bbd44201
tree2d7ee02ef95eb9497f04ce1c1ff75c1f69246ccd
parentd80286711e4d7e3aa4c86e179612d712441d4e24
HID: roccat: common, konepure, ryos, savu: 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>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/hid-roccat-common.h
drivers/hid/hid-roccat-konepure.c
drivers/hid/hid-roccat-ryos.c
drivers/hid/hid-roccat-savu.c