diff options
author | Eric Pilmore <[email protected]> | 2023-01-18 19:39:08 -0800 |
---|---|---|
committer | Vinod Koul <[email protected]> | 2023-01-19 18:59:34 +0530 |
commit | 95e5fda3b5f9ed8239b145da3fa01e641cf5d53c (patch) | |
tree | afce5d3b1023c71cdefca5c03800da9d9adfac93 /lib/memory-notifier-error-inject.c | |
parent | a7a7ee6f5a019ad72852c001abbce50d35e992f2 (diff) |
ptdma: pt_core_execute_cmd() should use spinlock
The interrupt handler (pt_core_irq_handler()) of the ptdma
driver can be called from interrupt context. The code flow
in this function can lead down to pt_core_execute_cmd() which
will attempt to grab a mutex, which is not appropriate in
interrupt context and ultimately leads to a kernel panic.
The fix here changes this mutex to a spinlock, which has
been verified to resolve the issue.
Fixes: fa5d823b16a9 ("dmaengine: ptdma: Initial driver for the AMD PTDMA")
Signed-off-by: Eric Pilmore <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions