]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: wlcore: sysfs: constify 'struct bin_attribute'
authorThomas Weißschuh <linux@weissschuh.net>
Mon, 16 Dec 2024 11:30:10 +0000 (12:30 +0100)
committerKalle Valo <kvalo@kernel.org>
Wed, 18 Dec 2024 18:05:06 +0000 (20:05 +0200)
commit8ab3bf4764136e8ad8d1064c304be50297bcf9ad
tree922097efe2fab9ccf98c4c81bbe2c4cc02ed7c79
parentaeda9245c7ce6afbf0bf1be164ecef7552384c29
wifi: wlcore: 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>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://patch.msgid.link/20241216-sysfs-const-bin_attr-net-v1-3-ec460b91f274@weissschuh.net
drivers/net/wireless/ti/wlcore/sysfs.c