]> www.infradead.org Git - users/jedix/linux-maple.git/commit
scsi: ipr: Constify 'struct bin_attribute'
authorThomas Weißschuh <linux@weissschuh.net>
Mon, 16 Dec 2024 11:29:14 +0000 (12:29 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 2 Jan 2025 20:07:45 +0000 (15:07 -0500)
commitf6af41ff6671d354e2909351d97f4071d7e321ac
tree1de60a94ea9757f1c147fa28993d9bc05d864163
parent4594a1f827d4a8e2a96f114d7f2afa2171561e09
scsi: ipr: 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://lore.kernel.org/r/20241216-sysfs-const-bin_attr-scsi-v1-7-f0a5e54b3437@weissschuh.net
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ipr.c