Commit 4594a1f
scsi: lpfc: 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-6-f0a5e54b3437@weissschuh.net
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>1 parent af58c75 commit 4594a1f
1 file changed
Lines changed: 10 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6185 | 6185 | | |
6186 | 6186 | | |
6187 | 6187 | | |
6188 | | - | |
| 6188 | + | |
6189 | 6189 | | |
6190 | 6190 | | |
6191 | 6191 | | |
| |||
6244 | 6244 | | |
6245 | 6245 | | |
6246 | 6246 | | |
6247 | | - | |
| 6247 | + | |
6248 | 6248 | | |
6249 | 6249 | | |
6250 | 6250 | | |
| |||
6280 | 6280 | | |
6281 | 6281 | | |
6282 | 6282 | | |
6283 | | - | |
| 6283 | + | |
6284 | 6284 | | |
6285 | 6285 | | |
6286 | 6286 | | |
6287 | 6287 | | |
6288 | 6288 | | |
6289 | | - | |
6290 | | - | |
| 6289 | + | |
| 6290 | + | |
6291 | 6291 | | |
6292 | 6292 | | |
6293 | 6293 | | |
| |||
6308 | 6308 | | |
6309 | 6309 | | |
6310 | 6310 | | |
6311 | | - | |
| 6311 | + | |
6312 | 6312 | | |
6313 | 6313 | | |
6314 | 6314 | | |
| |||
6332 | 6332 | | |
6333 | 6333 | | |
6334 | 6334 | | |
6335 | | - | |
| 6335 | + | |
6336 | 6336 | | |
6337 | 6337 | | |
6338 | 6338 | | |
6339 | 6339 | | |
6340 | 6340 | | |
6341 | | - | |
| 6341 | + | |
6342 | 6342 | | |
6343 | 6343 | | |
6344 | 6344 | | |
6345 | 6345 | | |
6346 | 6346 | | |
6347 | | - | |
6348 | | - | |
| 6347 | + | |
| 6348 | + | |
6349 | 6349 | | |
6350 | 6350 | | |
6351 | 6351 | | |
| |||
0 commit comments