Re: [PATCH] thunderbolt: Fix tunnel reference leak in tb_dp_dprx_start()

From: Mika Westerberg

Date: Fri Sep 18 2026 - 00:59:05 EST


Hi,

On Thu, Sep 17, 2026 at 03:52:31PM +0000, Wentao Liang wrote:
> The extra tunnel reference taken to keep the tunnel around while
> tunnel->dprx_work is pending is only dropped in tb_dp_dprx_stop() when
> cancel_delayed_work() reports that it canceled a pending work. For
> tunnels created by tb_tunnel_discover_dp() there is no callback, so no
> work is queued and that condition is never true, leaking the reference
> on every activation.

There are bunch of fixes in my fixes branch that I think real with this one
too (and they make the callback mandatory) please check if that's the case.