[GIT PULL] MHI fixes for v6.0
Manivannan Sadhasivam
manivannan.sadhasivam at linaro.org
Mon Aug 29 10:17:46 PDT 2022
The following changes since commit 568035b01cfb107af8d2e4bd2fb9aea22cf5b868:
Linux 6.0-rc1 (2022-08-14 15:50:18 -0700)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/mani/mhi.git tags/mhi-fixes-for-v6.0
for you to fetch changes up to acc5495bf764e7e441193f972d96c5d2887f6b8b:
bus: mhi: host: Fix up null pointer access in mhi_irq_handler (2022-08-29 22:33:46 +0530)
----------------------------------------------------------------
A single fix targeting the MHI host stack:
- Since the commit 1227d2a20cd7 ("bus: mhi: host: Move IRQ allocation to
controller registration phase"), the MHI context gets freed during
mhi_unregister_controller(). But when the MHI IRQs are shared, the IRQ
handler may get invoked during __free_irq() if CONFIG_DEBUG_SHIRQ is set.
In that case, there will be a null pointer dereference because of trying to
use the freed context struct.
So for fixing the issue, let's check for the existence of the context struct
at the start of the handler before handling the IRQ.
----------------------------------------------------------------
Qiang Yu (1):
bus: mhi: host: Fix up null pointer access in mhi_irq_handler
drivers/bus/mhi/host/main.c | 19 ++++++++++++++++---
1 file changed, 16 insertions(+), 3 deletions(-)
--
மணிவண்ணன் சதாசிவம்
More information about the ath11k
mailing list