]> www.infradead.org Git - users/jedix/linux-maple.git/commit
scsi: qla4xxx: Constify 'struct bin_attribute'
authorThomas Weißschuh <linux@weissschuh.net>
Mon, 16 Dec 2024 11:29:18 +0000 (12:29 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 2 Jan 2025 20:07:46 +0000 (15:07 -0500)
commitea4f2219dd40c14fa8dbb5a3288482830a0bc03e
tree695ecebb9c0e477878220393cf277b752f3e8f8d
parent06a9ceb95f860bd4dc931ed7b9e6cf9333564e3c
scsi: qla4xxx: 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-11-f0a5e54b3437@weissschuh.net
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla4xxx/ql4_attr.c