[PATCH 5.12 464/700] tc-testing: fix list handling