]> www.infradead.org Git - users/jedix/linux-maple.git/commit
HID: core: constify 'struct bin_attribute'
authorThomas Weißschuh <linux@weissschuh.net>
Mon, 2 Dec 2024 19:01:33 +0000 (20:01 +0100)
committerJiri Kosina <jkosina@suse.com>
Wed, 11 Dec 2024 14:11:04 +0000 (15:11 +0100)
commitd80286711e4d7e3aa4c86e179612d712441d4e24
treec3e931b0d50678e746124cd815dd5f3dc4dc36c7
parent725bf3d8faab91cfd55e275752509fed851da643
HID: core: 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-core.c