Skip to content
Commit 0d72f762 authored by Hewenliang's avatar Hewenliang Committed by Paul Gortmaker
Browse files

tools: PCI: Fix fd leakage



commit 3c379a59 upstream.

We should close fd before the return of run_test.

Fixes: 3f2ed813 ("tools: PCI: Add a userspace tool to test PCI endpoint")
Signed-off-by: default avatarHewenliang <hewenliang4@huawei.com>
Signed-off-by: default avatarLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: default avatarKishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
parent f0f07f53
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment