diff options
author | Martin K. Petersen <martin.petersen@oracle.com> | 2025-01-02 21:08:42 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2025-01-02 21:08:42 +0100 |
commit | ebbf01f9f4e6b4100655567266d96d893df14362 (patch) | |
tree | 92ec060f921c26b2b40ac9879aac23700713b724 /drivers/scsi/qedi | |
parent | Merge patch series "Update lpfc to revision 14.4.0.7" (diff) | |
parent | scsi: qla4xxx: Constify 'struct bin_attribute' (diff) | |
download | linux-ebbf01f9f4e6b4100655567266d96d893df14362.tar.xz linux-ebbf01f9f4e6b4100655567266d96d893df14362.zip |
Merge patch series "scsi: Constify 'struct bin_attribute'"
Thomas Weißschuh <linux@weissschuh.net> says:
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.
Link: https://lore.kernel.org/r/20241216-sysfs-const-bin_attr-scsi-v1-0-f0a5e54b3437@weissschuh.net
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/qedi')
-rw-r--r-- | drivers/scsi/qedi/qedi_dbg.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/qedi/qedi_dbg.h b/drivers/scsi/qedi/qedi_dbg.h index fdda12ef13b0..5a1ec4542183 100644 --- a/drivers/scsi/qedi/qedi_dbg.h +++ b/drivers/scsi/qedi/qedi_dbg.h @@ -91,7 +91,7 @@ struct Scsi_Host; struct sysfs_bin_attrs { char *name; - struct bin_attribute *attr; + const struct bin_attribute *attr; }; int qedi_create_sysfs_attr(struct Scsi_Host *shost, |