Skip to content

Commit f450958

Browse files
matttbegregkh
authored andcommitted
selftests: mptcp: clean tmp files in simult_flows
[ Upstream commit bfd862a ] '$cin' and '$sin' variables are local to a function: they are then not available from the cleanup trap. Instead, we need to use '$large' and '$small' that are not local and defined just before setting the trap. Without this patch, running this script in a loop might cause a: write: No space left on device issue. Fixes: 1a418cb ("mptcp: simult flow self-tests") Acked-by: Paolo Abeni <pabeni@redhat.com> Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net> Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 5711ced commit f450958

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎tools/testing/selftests/net/mptcp/simult_flows.sh‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ usage() {
2121

2222
cleanup()
2323
{
24-
rm -f "$cin" "$cout"
25-
rm -f "$sin" "$sout"
24+
rm -f "$cout" "$sout"
25+
rm -f "$large" "$small"
2626
rm -f "$capout"
2727

2828
local netns

0 commit comments

Comments
 (0)