Commit 4082cebd authored by Manivannan Sadhasivam's avatar Manivannan Sadhasivam Committed by Dmitry Baryshkov
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 bc1e4fad
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment