Thadeu Lima de Souza Cascardo 778a785f02 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>
2012-02-14 15:01:39 +11:00
..
2010-08-04 10:26:03 +10:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-06-20 11:21:48 +10:00
2011-07-26 16:49:47 -07:00
2011-11-08 14:51:46 +11:00
2009-12-10 20:08:15 -06:00
2010-10-26 16:52:08 -07:00
2011-03-02 16:50:24 +11:00
2008-08-18 21:40:03 +02:00
2008-08-04 13:18:17 +10:00
2011-07-26 16:49:47 -07:00
2011-12-08 14:02:23 +11:00
2011-03-31 11:26:23 -03:00
2011-05-22 08:47:53 -04:00
2010-05-17 12:18:23 +03:00
2011-12-27 11:26:43 +02:00
2010-06-09 11:12:36 +02:00
2011-07-26 16:49:47 -07:00
2010-05-05 09:11:10 -04:00
2011-09-20 09:19:40 +10:00
2011-12-07 18:02:02 +11:00
2011-03-31 11:26:23 -03:00
2010-03-05 03:04:08 -06:00
2010-10-26 16:52:08 -07:00
2011-03-31 11:26:23 -03:00
2011-07-26 16:49:47 -07:00
2009-04-07 15:18:58 +10:00
2009-12-09 17:10:37 +11:00
2011-09-20 09:19:40 +10:00
2012-02-14 15:01:38 +11:00
2011-09-27 18:08:04 +02:00
2010-03-05 03:04:08 -06:00
2011-12-09 07:51:02 -05:00
2011-04-20 17:01:19 +10:00
2011-03-31 11:26:23 -03:00
2008-09-06 19:30:15 +01:00
2009-08-28 14:24:10 +10:00
2011-10-31 17:30:44 -07:00
2011-12-16 11:09:21 +11:00
2011-10-31 17:30:44 -07:00
2011-03-31 11:26:23 -03:00
2011-05-06 13:32:35 +10:00
2011-11-08 14:51:46 +11:00