rtase: Fix improper release of ring list entries in rtase_sw_reset
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: 07960048 ("rtase: Implement net_device_ops") Signed-off-by:Justin Lai <justinlai0215@realtek.com> Reviewed-by:
Simon Horman <horms@kernel.org> Link: https://patch.msgid.link/20250306070510.18129-1-justinlai0215@realtek.com Signed-off-by:
Paolo Abeni <pabeni@redhat.com>
Loading
Please register or sign in to comment