]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
tools: PCI: Fix fd leakage
authorHewenliang <hewenliang4@huawei.com>
Sat, 26 Oct 2019 01:35:55 +0000 (21:35 -0400)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 14 Feb 2020 06:00:53 +0000 (01:00 -0500)
commit8a4fac0a4aab18ec209aeda2fe62e82622dc606a
treeae477477bfa525a9de9117031443b9f9c2fd1356
parent2b205ddedff17323ac583bd195c4928dc667de00
tools: PCI: Fix fd leakage

BugLink: https://bugs.launchpad.net/bugs/1862227
commit 3c379a59b4795d7279d38c623e74b9790345a32b upstream.

We should close fd before the return of run_test.

Fixes: 3f2ed8134834 ("tools: PCI: Add a userspace tool to test PCI endpoint")
Signed-off-by: Hewenliang <hewenliang4@huawei.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
tools/pci/pcitest.c