Commit 032532f
ASoC: codecs: rt5640: Always disable IRQs from rt5640_cancel_work()
Disable IRQs from rt5640_cancel_work(), this fixes a crash caused by
the IRQ never getting freed when the driver is unbound from the i2c_client
with jack-detection active:
[ 193.138780] rt5640 i2c-rt5640: ASoC: unknown pin LDO2
[ 193.138830] rt5640 i2c-rt5640: ASoC: unknown pin MICBIAS1
[ 193.671218] BUG: kernel NULL pointer dereference, address: 0000000000000078
[ 193.671239] #PF: supervisor read access in kernel mode
[ 193.671248] #PF: error_code(0x0000) - not-present page
...
[ 193.671531] ? asm_exc_page_fault+0x22/0x30
[ 193.671551] ? rt5640_jack_inserted+0x10/0x80 [snd_soc_rt5640]
[ 193.671574] rt5640_detect_headset+0x93/0x130 [snd_soc_rt5640]
[ 193.671596] rt5640_jack_work+0x93/0x355 [snd_soc_rt5640]
Signed-off-by: Hans de Goede <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Mark Brown <[email protected]>1 parent db7e59e commit 032532f
1 file changed
+15
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2419 | 2419 | | |
2420 | 2420 | | |
2421 | 2421 | | |
2422 | | - | |
| 2422 | + | |
2423 | 2423 | | |
2424 | 2424 | | |
2425 | 2425 | | |
| 2426 | + | |
| 2427 | + | |
| 2428 | + | |
| 2429 | + | |
| 2430 | + | |
| 2431 | + | |
| 2432 | + | |
| 2433 | + | |
| 2434 | + | |
| 2435 | + | |
2426 | 2436 | | |
2427 | 2437 | | |
2428 | 2438 | | |
| |||
2463 | 2473 | | |
2464 | 2474 | | |
2465 | 2475 | | |
2466 | | - | |
2467 | | - | |
2468 | | - | |
2469 | | - | |
2470 | | - | |
2471 | | - | |
2472 | | - | |
| 2476 | + | |
2473 | 2477 | | |
2474 | 2478 | | |
2475 | 2479 | | |
2476 | 2480 | | |
2477 | 2481 | | |
2478 | 2482 | | |
2479 | 2483 | | |
2480 | | - | |
2481 | | - | |
2482 | 2484 | | |
2483 | 2485 | | |
2484 | 2486 | | |
| |||
2798 | 2800 | | |
2799 | 2801 | | |
2800 | 2802 | | |
2801 | | - | |
| 2803 | + | |
| 2804 | + | |
2802 | 2805 | | |
2803 | 2806 | | |
2804 | 2807 | | |
| |||
3032 | 3035 | | |
3033 | 3036 | | |
3034 | 3037 | | |
3035 | | - | |
| 3038 | + | |
3036 | 3039 | | |
3037 | 3040 | | |
3038 | 3041 | | |
| |||
0 commit comments