Commit 7a1f80e1 authored by Manivannan Sadhasivam's avatar Manivannan Sadhasivam
Browse files

tools: PCI: Fix parsing the return value of IOCTLs



"pci_endpoint_test" driver now returns 0 for success and negative error
code for failure. So adapt to the change by reporting FAILURE if the
return value is < 0, and SUCCESS otherwise.

Cc: stable@vger.kernel.org #5.10
Fixes: 3f2ed813 ("tools: PCI: Add a userspace tool to test PCI endpoint")
Signed-off-by: default avatarManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
parent 2712c58a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment