]> www.infradead.org Git - users/jedix/linux-maple.git/commit
zorro: Constify 'struct bin_attribute'
authorThomas Weißschuh <linux@weissschuh.net>
Mon, 16 Dec 2024 12:30:54 +0000 (13:30 +0100)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Wed, 8 Jan 2025 17:04:36 +0000 (18:04 +0100)
commit738fa3feb2e38bb603616093ff2e089f5bf8e103
tree14cf8c8c097688a83406f09be0cda299f39e8eae
parentf6031436a27c49123d0113444a726348c8f35d10
zorro: 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>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Link: https://lore.kernel.org/20241216-sysfs-const-bin_attr-zorro-v1-1-220a38d49507@weissschuh.net
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
drivers/zorro/zorro-sysfs.c