Skip to content

Commit bfd862a

Browse files
matttbekuba-moo
authored andcommitted
selftests: mptcp: clean tmp files in simult_flows
'$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 <[email protected]> Signed-off-by: Matthieu Baerts <[email protected]> Signed-off-by: Mat Martineau <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 1094c6f commit bfd862a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

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

2323
cleanup()
2424
{
25-
rm -f "$cin" "$cout"
26-
rm -f "$sin" "$sout"
25+
rm -f "$cout" "$sout"
26+
rm -f "$large" "$small"
2727
rm -f "$capout"
2828

2929
local netns

0 commit comments

Comments
 (0)