Commit e2b4e82
committed
scsi: ibmvfc: Constify 'struct bin_attribute'
JIRA: https://issues.redhat.com/browse/RHEL-116876
commit af58c75
Author: Thomas Weißschuh <linux@weissschuh.net>
Date: Mon Dec 16 12:29:12 2024 +0100
scsi: ibmvfc: 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-5-f0a5e54b3437@weissschuh.net
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Anusha Srivatsa <asrivats@redhat.com>1 parent 389cf67 commit e2b4e82
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3641 | 3641 | | |
3642 | 3642 | | |
3643 | 3643 | | |
3644 | | - | |
| 3644 | + | |
3645 | 3645 | | |
3646 | 3646 | | |
3647 | 3647 | | |
| |||
3664 | 3664 | | |
3665 | 3665 | | |
3666 | 3666 | | |
3667 | | - | |
| 3667 | + | |
3668 | 3668 | | |
3669 | 3669 | | |
3670 | 3670 | | |
3671 | 3671 | | |
3672 | 3672 | | |
3673 | | - | |
| 3673 | + | |
3674 | 3674 | | |
3675 | 3675 | | |
3676 | 3676 | | |
| |||
0 commit comments