Skip to content
Snippets Groups Projects
Commit 415f135a authored by Justin Lai's avatar Justin Lai Committed by Paolo Abeni
Browse files

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: default avatarJustin Lai <justinlai0215@realtek.com>
Reviewed-by: default avatarSimon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250306070510.18129-1-justinlai0215@realtek.com


Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent 3121a1ef
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment