diff options
| author | Thomas Weißschuh <[email protected]> | 2024-12-22 20:04:50 +0000 |
|---|---|---|
| committer | Lee Jones <[email protected]> | 2025-01-09 11:09:09 +0000 |
| commit | daefd7fbd544671ad0b9c2a815d7f5e3d2f0365c (patch) | |
| tree | 6dca46365bd22158cf8e611eeddee5672eabb4c7 /net/unix/sysctl_net_unix.c | |
| parent | leds: cht-wcove: Use devm_led_classdev_register() to avoid memory leak (diff) | |
| download | kernel-daefd7fbd544671ad0b9c2a815d7f5e3d2f0365c.tar.gz kernel-daefd7fbd544671ad0b9c2a815d7f5e3d2f0365c.zip | |
leds: triggers: 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 <[email protected]>
Link: https://lore.kernel.org/r/20241222-sysfs-const-bin_attr-led-v1-1-ecc5212a31fa@weissschuh.net
Signed-off-by: Lee Jones <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions
