linux/drivers/misc/cxl
Michael Neuling 7f436b534d cxl: Fix error path on probe
When probing we call pci_enable_device() but don't call pci_disable_device() on
fail. This causes refcounting issues in the PCI subsystem if a second driver
tries to bind to the same device.

This patch adds the pci_disable_device() to the probe error path. This error
path is hit when this cxl driver tries to bind to AFUs (on the vPHB) rather
than the physical device.

Signed-off-by: Michael Neuling <mikey@neuling.org>
Acked-by: Ian Munsie <imunsie@au1.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2015-06-03 13:27:17 +10:00
..
base.c
context.c cxl: Use call_rcu to reduce latency when releasing the afu fd 2015-06-03 13:27:15 +10:00
cxl.h cxl: Use call_rcu to reduce latency when releasing the afu fd 2015-06-03 13:27:15 +10:00
debugfs.c cxl: Driver code for powernv PCIe based cards for userspace access 2014-10-08 20:15:57 +11:00
fault.c cxl: Add tracepoints 2015-01-22 17:31:51 +11:00
file.c cxl: Implement an ioctl to fetch afu card-id, offset-id and mode 2015-06-03 13:27:15 +10:00
irq.c cxl: Add missing return statement after handling AFU errror 2015-02-06 11:17:27 +11:00
Kconfig cxl: Add driver to Kbuild and Makefiles 2014-10-08 20:15:58 +11:00
main.c cxl: Add tracepoints 2015-01-22 17:31:51 +11:00
Makefile cxl: Add tracepoints 2015-01-22 17:31:51 +11:00
native.c cxl: Add tracepoints 2015-01-22 17:31:51 +11:00
pci.c cxl: Fix error path on probe 2015-06-03 13:27:17 +10:00
sysfs.c cxl: Export AFU error buffer via sysfs 2015-06-03 13:27:15 +10:00
trace.c cxl: Add tracepoints 2015-01-22 17:31:51 +11:00
trace.h cxl: Add tracepoints 2015-01-22 17:31:51 +11:00