misc: pci_endpoint_test: Fix failure path return values in probe
authorKishon Vijay Abraham I <kishon@ti.com>
Wed, 11 Oct 2017 08:44:36 +0000 (14:14 +0530)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 31 Oct 2017 20:33:46 +0000 (15:33 -0500)
commit80068c93688f6143100859c4856f895801c1a1d9
tree7272488bb19d3eaaeb824be7ca2dcf811a87d2fa
parenta2db2663bd72053ca1e4b4f36dfd31ba233c3a65
misc: pci_endpoint_test: Fix failure path return values in probe

Return value of pci_endpoint_test_probe is not set properly in a couple of
failure cases. Fix it here.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/misc/pci_endpoint_test.c