Re: [PATCH] rpmsg: glink: fix deadlock in endpoint destroy during driver detach

From: Bjorn Andersson

Date: Tue Jul 14 2026 - 13:38:51 EST



On Thu, 04 Jun 2026 14:12:53 +0530, Vishnu Santhosh wrote:
> During driver detach, the device core holds the device mutex throughout
> the driver's remove callback chain. When the rpmsg endpoint is
> destroyed as part of that teardown, the GLINK endpoint destroy
> implementation attempts to unregister the underlying rpmsg device.
> That unregistration calls device_del(), which tries to re-acquire the
> same device mutex already held higher up the stack, causing rmmod to
> hang indefinitely.
>
> [...]

Applied, thanks!

[1/1] rpmsg: glink: fix deadlock in endpoint destroy during driver detach
commit: 5a5a48e788e02fd8a8eb7188ce440572d6c12418

Best regards,
--
Bjorn Andersson <andersson@xxxxxxxxxx>