Re: [PATCH net] rtase: Fix improper release of ring list entries in rtase_sw_reset

From: Simon Horman
Date: Mon Mar 10 2025 - 02:21:11 EST


On Thu, Mar 06, 2025 at 03:05:10PM +0800, Justin Lai wrote:
> Since rtase_init_ring, which is called within rtase_sw_reset, adds ring
> entries already present in the ring list back into the list, it causes
> the ring list to form a cycle. This results in list_for_each_entry_safe
> failing to find an endpoint during traversal, leading to an error.
> Therefore, it is necessary to remove the previously added ring_list nodes
> before calling rtase_init_ring.
>
> Fixes: 079600489960 ("rtase: Implement net_device_ops")
> Signed-off-by: Justin Lai <justinlai0215@xxxxxxxxxxx>

Reviewed-by: Simon Horman <horms@xxxxxxxxxx>