diff options
| author | Thomas Weißschuh <[email protected]> | 2024-12-02 19:02:57 +0000 |
|---|---|---|
| committer | Bjorn Helgaas <[email protected]> | 2024-12-03 21:25:41 +0000 |
| commit | 0530ad489d1576ac2e9d65068500d11b653c8f8a (patch) | |
| tree | 077fb7d45130aaae6ecb5e1fb18accf1a240c029 /net/unix/af_unix.c | |
| parent | Linux 6.13-rc1 (diff) | |
| download | kernel-0530ad489d1576ac2e9d65068500d11b653c8f8a.tar.gz kernel-0530ad489d1576ac2e9d65068500d11b653c8f8a.zip | |
PCI/sysfs: 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.
Link: https://lore.kernel.org/r/20241202-sysfs-const-bin_attr-pci-v1-1-c32360f495a7@weissschuh.net
Signed-off-by: Thomas Weißschuh <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
