selftests: mptcp: clean tmp files in simult_flows
Matthieu Baerts authored
[ Upstream commit bfd862a7 ]

'$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: 1a418cb8

 ("mptcp: simult flow self-tests")
Acked-by: default avatarPaolo Abeni <pabeni@redhat.com>
Signed-off-by: default avatarMatthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: default avatarMat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
5d37e739
Name Last commit Last update
Documentation dt-bindings: mtd: gpmc: Fix the ECC bytes vs. OOB bytes equation
LICENSES LICENSES/dual/CC-BY-4.0: Git rid of "smart quotes"
arch ARC: export clear_user_page() for modules
block block, bfq: honor already-setup queue merges
certs certs: Trigger creation of RSA module signing key if it's not an RSA key
crypto crypto: ecc - handle unaligned input buffer in ecc_swap_digits
drivers gpio: mpc8xxx: Use 'devm_gpiochip_add_data()' to simplify the code and avoid a leak
fs io_uring: retry in case of short read on block device
include PCI: Sync __pci_register_driver() stub for CONFIG_PCI=n
init init: Suppress wrong warning for bootconfig cmdline parameter
ipc Merge branch 'akpm' (patches from Andrew)
kernel tracing/boot: Fix a hist trigger dependency for boot time tracing
lib lib/test_stackinit: Fix static initializer test
mm mm/mempolicy: fix a race between offset_il_node and mpol_rebind_task
net mptcp: fix possible divide by zero
samples samples: pktgen: fix to print when terminated normally
scripts gen_compile_commands: fix missing 'sys' package
security Smack: Fix wrong semantics in smk_access_entry()
sound ASoC: soc-pcm: protect BE dailink state changes in trigger
tools selftests: mptcp: clean tmp files in simult_flows
usr .gitignore: prefix local generated files with a slash
virt KVM: Do not leak memory for duplicate debugfs directories
.clang-format clang-format: Update with the latest for_each macro list
.cocciconfig scripts: add Linux .cocciconfig for coccinelle
.get_maintainer.ignore Opt out of scripts/get_maintainer.pl
.gitattributes
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
README
Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.