Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2354084pxb; Mon, 20 Sep 2021 19:53:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxvzVCtHlTydgL2mZE4+p5oBLg5DL2vCTpLrHod3uUvuqW3Ix2Yj9vE6eE5+ASaH+/xvUxm X-Received: by 2002:a02:6405:: with SMTP id t5mr21999381jac.136.1632192789634; Mon, 20 Sep 2021 19:53:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632192789; cv=none; d=google.com; s=arc-20160816; b=nmEn/t8hb3Mq102sMozCDGgFW2PMo3ORA9p9gqVQ6Oplg1P3qc1yrN/OVYuS5nrqOV QpcrWFXIx/kHfyMIn2Dpy1ahUoSslnERcWezapmDHH4ry3+ENTDVviMMHybCjXJWZcQL 98Y4dx3AAos/R5bZwi+p7ImgcNtna6SmcgIsG9ooykdU85HsJxh/XS/rNOaoAsrgJATo On6/jXshsf7Z+YJpaq0epOKav45ngu/GRbmueuuKhd1wtp+0zU7miZkiYjf71lxxsmzW zqBA4HpgQoxyddDIwZOUnpyEQ16nsq0GL/ZN6f9jqznLo0KRSZCkMk2a+FIhRVjoIJvd 8COw== 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=krVRtyca5+bnh3Ue9Ft+m+rhN7DeYYVf4lrwvQ2W+6o=; b=cECW9DuSlQJEdIMijIR56eFEbcu8eoHVxy27E8KhCXvns1q64TwCyWTWqQMuDEg8jq 98WI74rJLrlqIEg8EiEsjPiuaejc+93AWr4GMJUYTaHXWL9vmviUaMwlk6jTd7WXWJYS 4vEf7B+6fGepMi30fuwFtXijeFZf0g275v0WqA+EMcBqs2sycr7zXG1PiquQo3w/oaMy 8XX3hDsDCVJexzxSjdCEzwjIe+/r555IFEAyvf6nB4oBbyhq5g2QAkjVB0WCm6lKejLu OmQOh4g+p2MgwWoRcHGwUf2OUNXa8516DEzBk+IMadzyWx2WZ6ogr3KnuIU6ZgxBmUE7 ckzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=nvnu+B4L; 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 m19si12978497jat.15.2021.09.20.19.52.58; Mon, 20 Sep 2021 19:53:09 -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=nvnu+B4L; 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 S231357AbhITS5F (ORCPT + 99 others); Mon, 20 Sep 2021 14:57:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:33544 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1384659AbhITSsd (ORCPT ); Mon, 20 Sep 2021 14:48:33 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 18DC56152B; Mon, 20 Sep 2021 17:34:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632159261; bh=RvZMJUwPwvICKJLCLPqT7k/SWeRAM9TQK5Wn4bOsmww=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nvnu+B4LkKvYNg3jqSQcKGIC5mIWrpsWd0xB3HUdPeCcQdsfHLJGMJrY1MrNvlrc6 72pRq853/0JSKoI2ZdHug2z9iVuwpP2fqsrztndwkvoNVo1TWqz7JWiunPRyTGB9mS EhQacj2atIXgSbwqcIvNblTHKDWXub/zJ6HVC0xU= 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.14 150/168] selftests: mptcp: clean tmp files in simult_flows Date: Mon, 20 Sep 2021 18:44:48 +0200 Message-Id: <20210920163926.588013597@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210920163921.633181900@linuxfoundation.org> References: <20210920163921.633181900@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 fd63ebfe9a2b..910d8126af8f 100755 --- a/tools/testing/selftests/net/mptcp/simult_flows.sh +++ b/tools/testing/selftests/net/mptcp/simult_flows.sh @@ -22,8 +22,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