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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Dec 2017 09:10:28 +0000 (10:10 +0100)
commit85d63b76bdd1b570b9c16e60f83eb3185e22b30d
treeaa0e3876dc35a2461368285cfe09fb482010572c
parent5642562d0b4f616cac2b4d7f81de0a58f2247b59
misc: pci_endpoint_test: Fix failure path return values in probe

[ Upstream commit 80068c93688f6143100859c4856f895801c1a1d9 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/pci_endpoint_test.c