android_kernel_xiaomi_sm8350/tools/pci
Hewenliang 911e1dcc1b tools: PCI: Fix fd leakage
commit 3c379a59b4795d7279d38c623e74b9790345a32b upstream.

We should close fd before the return of run_test.

Fixes: 3f2ed81348 ("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>
2020-01-17 19:48:54 +01:00
..
Build tools: PCI: Change pcitest compiling process 2018-10-03 11:19:52 +01:00
Makefile tools: PCI: Fix installation when make tools/pci_install 2019-07-09 17:31:22 +01:00
pcitest.c tools: PCI: Fix fd leakage 2020-01-17 19:48:54 +01:00
pcitest.sh