Commit a1d4ef1
pinctrl: stm32: fix optional IRQ support to gpios
To act as an interrupt controller, a gpio bank relies on the
"interrupt-parent" of the pin controller.
When this optional "interrupt-parent" misses, do not create any IRQ domain.
This fixes a "NULL pointer in stm32_gpio_domain_alloc()" kernel crash when
the interrupt-parent = <exti> property is not declared in the Device Tree.
Fixes: 0eb9f68 ("pinctrl: Add IRQ support to STM32 gpios")
Signed-off-by: Fabien Dessenne <fabien.dessenne@foss.st.com>
Link: https://lore.kernel.org/r/20220627142350.742973-1-fabien.dessenne@foss.st.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>1 parent fbc24eb commit a1d4ef1
1 file changed
Lines changed: 12 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1338 | 1338 | | |
1339 | 1339 | | |
1340 | 1340 | | |
1341 | | - | |
1342 | | - | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
1343 | 1344 | | |
1344 | | - | |
1345 | | - | |
1346 | | - | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
1347 | 1348 | | |
1348 | | - | |
1349 | | - | |
1350 | | - | |
| 1349 | + | |
| 1350 | + | |
| 1351 | + | |
| 1352 | + | |
1351 | 1353 | | |
1352 | 1354 | | |
1353 | 1355 | | |
| |||
1510 | 1512 | | |
1511 | 1513 | | |
1512 | 1514 | | |
| 1515 | + | |
| 1516 | + | |
1513 | 1517 | | |
1514 | 1518 | | |
1515 | 1519 | | |
| |||
0 commit comments