Re: Re: [PATCH] bus: mhi: ep: cancel reset work during controller teardown

From: Greg Kroah-Hartman

Date: Sun Oct 18 2026 - 07:53:25 EST


On Sun, Oct 18, 2026 at 07:12:39PM +0800, jiale yao wrote:
> At 2026-10-18 14:34:06, "Greg Kroah-Hartman" <gregkh@xxxxxxxxxxxxxxxxxxx> wrote:
> >On Sun, Oct 18, 2026 at 12:06:14PM +0800, Jiale Yao wrote:
> >> The doorbell IRQ schedules reset_work on the system workqueue when the
> >> host requests an MHI reset. The controller teardown only drains the
> >> private MHI workqueue before releasing the controller state, so
> >> reset_work can still run after that state has been freed.
> >>
> >> Cancel reset_work before destroying the private workqueue and releasing
> >> the controller resources. The caller is required to power down the
> >> controller first, so the IRQ can no longer queue the work at this point.
> >>
> >> Fixes: 7a97b6b47353 ("bus: mhi: ep: Add support for handling MHI_RESET")
> >> Signed-off-by: Jiale Yao <yaojiale02@xxxxxxx>
> >> ---
> >> drivers/bus/mhi/ep/main.c | 1 +
> >> 1 file changed, 1 insertion(+)
> >
> >How was this found and tested? What about a cc: stable?
>
> cc:stable is necessory. The bug was found by my static analysis tools.

Then as per our documentation you need to state that, right?