Commit 3c379a59 authored by Hewenliang's avatar Hewenliang Committed by Lorenzo Pieralisi
Browse files

tools: PCI: Fix fd leakage

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>
parent 35a82a37
Supports Markdown
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