diff options
author | Hans de Goede <hansg@kernel.org> | 2025-06-23 10:50:47 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-08-15 16:38:28 +0200 |
commit | 8f316c850c5504777cf7bf8bd63d84227cfdb83d (patch) | |
tree | b516e860902a6a3cde471ce534e169128947c837 /rust/kernel/alloc.rs | |
parent | 277275e3c2003e29704a7c88c23fe8b9fdeecdc7 (diff) |
mei: vsc: Destroy mutex after freeing the IRQ
[ Upstream commit 35b7f3525fe0a7283de7116e3c75ee3ccb3b14c9 ]
The event_notify callback which runs from vsc_tp_thread_isr may call
vsc_tp_xfer() which locks the mutex. So the ISR depends on the mutex.
Move the mutex_destroy() call to after free_irq() to ensure that the ISR
is not running while the mutex is destroyed.
Fixes: 566f5ca97680 ("mei: Add transport driver for IVSC device")
Signed-off-by: Hans de Goede <hansg@kernel.org>
Link: https://lore.kernel.org/r/20250623085052.12347-6-hansg@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'rust/kernel/alloc.rs')
0 files changed, 0 insertions, 0 deletions