diff options
author | Thadeu Lima de Souza Cascardo <cascardo@linux.vnet.ibm.com> | 2012-01-11 09:09:58 (GMT) |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2012-02-14 04:01:39 (GMT) |
commit | 778a785f02ad846446e91dab49331bd7d853c514 (patch) | |
tree | 4f8969fe08df41ced83f44ec9dd459ab10e72d69 /drivers/regulator/mc13xxx-regulator-core.c | |
parent | 444080d13d05dc38d07dd3bf751d38bce7ab7c72 (diff) | |
download | linux-778a785f02ad846446e91dab49331bd7d853c514.tar.xz |
powerpc/pseries/eeh: Fix crash when error happens during device probe
EEH may happen during a PCI driver probe. If the driver is trying to
access some register in a loop, the EEH code will try to print the
driver name. But the driver pointer in struct pci_dev is not set until
probe returns successfully.
Use a function to test if the device and the driver pointer is NULL
before accessing the driver's name.
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'drivers/regulator/mc13xxx-regulator-core.c')
0 files changed, 0 insertions, 0 deletions