]> www.infradead.org Git - users/dwmw2/linux.git/commit
netxen_nic: constify 'struct bin_attribute'
authorThomas Weißschuh <linux@weissschuh.net>
Mon, 16 Dec 2024 11:30:11 +0000 (12:30 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 18 Dec 2024 03:00:51 +0000 (19:00 -0800)
commitae026eae08e7a0a118abc31192041e49bcda3a8e
treea5673c99988513ef842620326798d0eda68bfbe2
parent2d7b422fa7952e3f15fc0912b12530af1d265193
netxen_nic: 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>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20241216-sysfs-const-bin_attr-net-v1-4-ec460b91f274@weissschuh.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c