On Thu, Jul 17, 2025 at 10:23:07AM +0800, Ma Ke wrote:
The fsl_mc_get_endpoint() function may call fsl_mc_device_lookup() twice, which would increment the device's reference count twice if both lookups find a device. This could lead to a reference count leak.
Found by code review.
Cc: stable@vger.kernel.org Fixes: 1ac210d128ef ("bus: fsl-mc: add the fsl_mc_get_endpoint function") Signed-off-by: Ma Ke make24@iscas.ac.cn
Tested-by: Ioana Ciornei ioana.ciornei@nxp.com