Re: [PATCH] cxl/port: Constify 'struct bin_attribute'
From: Jonathan Cameron
Date: Wed Jan 15 2025 - 08:32:02 EST
On Tue, 14 Jan 2025 22:25:14 +0100
Thomas Weißschuh <linux@xxxxxxxxxxxxxx> wrote:
> 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@xxxxxxxxxxxxxx>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@xxxxxxxxxx>