Commit 93a32fc
committed
mfd: macsmc: Initialize mutex
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: e038d98 ("mfd: Add Apple Silicon System Management Controller")
Signed-off-by: Janne Grunau <[email protected]>1 parent ce8c3d1 commit 93a32fc
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
413 | 413 | | |
414 | 414 | | |
415 | 415 | | |
| 416 | + | |
416 | 417 | | |
417 | 418 | | |
418 | 419 | | |
| |||
0 commit comments