mirror of
https://github.com/torvalds/linux.git
synced 2026-11-28 01:13:11 +00:00
The irq handler for a shared IRQ ought to be prepared for running
even now it's being freed. So let's check the pointer used by
mhi_irq_handler to avoid null pointer access since it is probably
released before freeing IRQ.
Fixes: 1227d2a20c ("bus: mhi: host: Move IRQ allocation to controller registration phase")
Signed-off-by: Qiang Yu <[email protected]>
Reviewed-by: Manivannan Sadhasivam <[email protected]>
Tested-by: Kalle Valo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[mani: added fixes tag]
Signed-off-by: Manivannan Sadhasivam <[email protected]>