]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
RDMA/hfi1: Constify 'struct bin_attribute'
authorThomas Weißschuh <linux@weissschuh.net>
Tue, 14 Jan 2025 21:32:13 +0000 (22:32 +0100)
committerLeon Romanovsky <leon@kernel.org>
Sun, 19 Jan 2025 08:56:03 +0000 (03:56 -0500)
commit39d772f6654a17ae57656602e801d265e82a2e36
tree6bf2a12742f555dd6c7ca2f2b0c1ad94c307319a
parentedc4ef0e0154096d6c0cf5e06af6fc330dbad9d1
RDMA/hfi1: 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/20250114-sysfs-const-bin_attr-infiniband-v1-1-397aaa94d453@weissschuh.net
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/hfi1/sysfs.c