Thread (10 messages) 10 messages, 5 authors, 2025-10-21

Re: [PATCH] mfd: macsmc: Initialize mutex

From: Neal Gompa <neal@gompa.dev>
Date: 2025-09-27 02:29:09
Also in: asahi, lkml

On Thu, Sep 25, 2025 at 4:33 PM Janne Grunau [off-list ref] 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@jannau.net>
---
 drivers/mfd/macsmc.c | 1 +
 1 file changed, 1 insertion(+)
LGTM.

Reviewed-by: Neal Gompa <neal@gompa.dev>


-- 
真実はいつも一つ!/ Always, there's only one truth!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help