[PATCH v2] mfd: macsmc: Initialize mutex
Sven Peter
sven at kernel.org
Sun Jan 4 04:05:18 PST 2026
On 31.12.25 10:42, Janne Grunau wrote:
> Initialize struct apple_smc's mutex in apple_smc_probe(). Using the
> mutex uninitialized surprisingly resulted only 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")
> Cc: stable at vger.kernel.org
> Signed-off-by: Janne Grunau <j at jannau.net>
> ---
> Changes in v2:
> - rewritten commit message
> - added missing Cc: stable
> - rebased onto v6.19-rc1
> - Link to v1: https://lore.kernel.org/r/20250925-macsmc-mutex_init-v1-1-416e9e644735@jannau.net
> ---
Reviewed-by: Sven Peter <sven at kernel.org>
Thanks,
Sven
More information about the linux-arm-kernel
mailing list