summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorThomas Weißschuh <linux@weissschuh.net>2024-12-30 17:30:25 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-12-30 17:35:59 +0300
commit78dc14daf481a26b4da0e1ed7d9e1eb9112a0ba7 (patch)
treea38c40fcd3f660a9b3b503146d7535d6a17d33ce /include/linux
parent90154d08675fdac580b24d90a8716987d4ef4071 (diff)
downloadlinux-78dc14daf481a26b4da0e1ed7d9e1eb9112a0ba7.tar.xz
nvmem: core: 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. Also adapt the dynamic sysfs cell logic to handle the const attributes. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Link: https://lore.kernel.org/r/20241230143035.265518-2-srinivas.kandagatla@linaro.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions