[PATCH] mfd: macsmc: Initialize mutex
Neal Gompa
neal at gompa.dev
Fri Sep 26 19:28:30 PDT 2025
On Thu, Sep 25, 2025 at 4:33 PM Janne Grunau <j at jannau.net> wrote:
>
> Struct apple_smc's mutex was not initialized before use. Surprisingly
> this only resulted in occasional NULL pointer dereferences in
> apple_smc_read() calls from the probe() functions of sub devices.
>
> Fixes: e038d985c9823 ("mfd: Add Apple Silicon System Management Controller")
> Signed-off-by: Janne Grunau <j at jannau.net>
> ---
> drivers/mfd/macsmc.c | 1 +
> 1 file changed, 1 insertion(+)
>
LGTM.
Reviewed-by: Neal Gompa <neal at gompa.dev>
--
真実はいつも一つ!/ Always, there's only one truth!
More information about the linux-arm-kernel
mailing list