Re: [PATCH 5/5] net: ti: icss-iep: fix device and OF node leaks at probe

From: Simon Horman
Date: Sat Jul 26 2025 - 16:50:30 EST


On Fri, Jul 25, 2025 at 07:12:13PM +0200, Johan Hovold wrote:
> Make sure to drop the references to the IEP OF node and device taken by
> of_parse_phandle() and of_find_device_by_node() when looking up IEP
> devices during probe.
>
> Drop the bogus additional reference taken on successful lookup so that
> the device is released correctly by icss_iep_put().
>
> Fixes: c1e0230eeaab ("net: ti: icss-iep: Add IEP driver")
> Cc: stable@xxxxxxxxxxxxxxx # 6.6
> Cc: Roger Quadros <rogerq@xxxxxxxxxx>
> Signed-off-by: Johan Hovold <johan@xxxxxxxxxx>

Reviewed-by: Simon Horman <horms@xxxxxxxxxx>