Commit 0d968ae
Fix NULL pointer dereference in STM32 SPI construct
Move mark_deinit() before check_pins() so that self->sck is not
NULLed after check_pins sets it. The previous ordering caused a
NULL dereference of self->sck->altfn_index, crashing all STM32
boards that use SPI (including STM32F405 boards whose CIRCUITPY
filesystem lives on external SPI flash).
Fixes #10866
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 4a10c22 commit 0d968ae
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
139 | 143 | | |
140 | 144 | | |
141 | 145 | | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | 146 | | |
146 | 147 | | |
147 | 148 | | |
| |||
0 commit comments