]> git.baikalelectronics.ru Git - kernel.git/commit
Merge tag 'mhi-fixes-for-v6.0' of git://git.kernel.org/pub/scm/linux/kernel/git/mani...
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 Aug 2022 14:13:32 +0000 (16:13 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 Aug 2022 14:13:32 +0000 (16:13 +0200)
commit35b0b27588b7177420b4de3543144ecbc4b145f2
tree771d26b52cf2a49662138faee26c1203f1469c38
parentd7544eb0567c494738df4b88a817bc786a041093
parent274cb88ad8864c3722e2354c65dc2bd23dc46d65
Merge tag 'mhi-fixes-for-v6.0' of git://git.kernel.org/pub/scm/linux/kernel/git/mani/mhi into char-misc-linus

Manivannan writes:
  "A single fix targeting the MHI host stack:

    - Since the commit fc69e00b4dba ("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."

* tag 'mhi-fixes-for-v6.0' of git://git.kernel.org/pub/scm/linux/kernel/git/mani/mhi:
  bus: mhi: host: Fix up null pointer access in mhi_irq_handler