Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2353398pxb; Mon, 20 Sep 2021 19:51:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJykK3gQEoKtieL49UuwCiZclkgWeBdLXYKQQthCYdrJgWg3XVJDa60BUQ44lKUTRkCuI7Br X-Received: by 2002:a50:d98a:: with SMTP id w10mr23520849edj.120.1632192695739; Mon, 20 Sep 2021 19:51:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632192695; cv=none; d=google.com; s=arc-20160816; b=HmJFtiHpik90GMUeA82kVZc/m02ym3SLO1RdtqaLMSYYc7LdqWDZGeFp8jeDIT+OHE JSaPyYLhkfKjoNCTwDvOHZXsAgnRY1xRPRmTbEqe2dBrGxAhUdSLENkOWOAaSr380cH/ 9Gn9r2T7CjdRNrt1oG7p9y6ligQSmykwe7woyuqCbmf+BzH8jGsWm4BKKSCzx8tTszg7 Nzn0IkgL3HGYJ/3BqX3fnW2ubLD6KPmjgQjd/Ijgm5WVGdo2+YHOZ6kFk+P3I1blP5AU fHuteqYce+9xY9Rais7+EZlnUrZ60Om8YQo80jURBS7n6FbUns6B6h8aAdU28h8+0epF fXJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=8EguyPwMM8LMSW8dtAfNKQsznTXkEENYlbNbMcZKuPQ=; b=FdonPAh0S2zHDEq5Fjwmyc/+r7VlCl6y6ykXElGC2mW7B7vNQp3VYOzwi7UU4uzOw6 h+wB97I8NaUdnQ5Ck2PeoskTDt8R4vLYUfzagaLIIJpf+tuqOLdXGGbZVYonl2PZFwig cKtDm6toOe3fZTvQn4YDUMxQV4qFzW1SoviGKt3q2loipeoHYtwzRMTrGHmze+U5Yq6U j+PlCyGx/o10LvCvAkQOyFWM4ktpk/U9UWyBql78G6opIDdt02Ld79h91HrDqSYNPKh4 +sGPa9tmLeW1PF493RR53FBXVSKOTKG2R8HyKN34y3OtOh9vMVc925jUf3Ygwyr1ysM3 zfsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=PCSxcUoE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t2si18011334edt.298.2021.09.20.19.51.12; Mon, 20 Sep 2021 19:51:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=PCSxcUoE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1382395AbhITSkX (ORCPT + 99 others); Mon, 20 Sep 2021 14:40:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:53068 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379711AbhITSgR (ORCPT ); Mon, 20 Sep 2021 14:36:17 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 095BF63312; Mon, 20 Sep 2021 17:29:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632158948; bh=6Ta2N8n3Fgd+Rq1jJt28IfFGML1jBiYnkTE+JV4HOss=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PCSxcUoEW8+eskW7WRFOsU1kTsltZ/sHwFmJB9iNIy6SL76pI0fASX5PORGO+OR3e ZxvKUpqOwbZcZZjiEikDpRh+YCm3Kai6PHPArL2DD06xskUmPVt3MW1tVqiaD5Fk19 d+jaIExkbiu5eERuQzUqWRa9Yaxftzf5Q0H5ujYo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Paolo Abeni , Matthieu Baerts , Mat Martineau , Jakub Kicinski , Sasha Levin Subject: [PATCH 5.10 103/122] selftests: mptcp: clean tmp files in simult_flows Date: Mon, 20 Sep 2021 18:44:35 +0200 Message-Id: <20210920163919.171097841@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210920163915.757887582@linuxfoundation.org> References: <20210920163915.757887582@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Matthieu Baerts [ Upstream commit bfd862a7e9318dd906844807a713d27cdd1a72b1 ] '$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: 1a418cb8e888 ("mptcp: simult flow self-tests") Acked-by: Paolo Abeni Signed-off-by: Matthieu Baerts Signed-off-by: Mat Martineau Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- tools/testing/selftests/net/mptcp/simult_flows.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/net/mptcp/simult_flows.sh b/tools/testing/selftests/net/mptcp/simult_flows.sh index 2f649b431456..8fcb28927818 100755 --- a/tools/testing/selftests/net/mptcp/simult_flows.sh +++ b/tools/testing/selftests/net/mptcp/simult_flows.sh @@ -21,8 +21,8 @@ usage() { cleanup() { - rm -f "$cin" "$cout" - rm -f "$sin" "$sout" + rm -f "$cout" "$sout" + rm -f "$large" "$small" rm -f "$capout" local netns -- 2.30.2