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