summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAlan Stern <stern@rowland.harvard.edu>2012-01-27 16:24:40 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2012-01-27 23:35:30 +0100
commit07d251460bbf9752c6532af8c1a68328c199dd70 (patch)
tree2b483ae9288ef5afca0dfee8cd32c94a118f1f54 /drivers
parentUSB/PCI/PCMCIA: Clean up new_id and remove_id sysfs attribute routines (diff)
downloadlinux-07d251460bbf9752c6532af8c1a68328c199dd70.tar.xz
linux-07d251460bbf9752c6532af8c1a68328c199dd70.zip
PCI/XEN: Fix bug introduced by a recent change
This patch (as1516) fixes a bug introduced during the removal of put_driver() and get_driver() from drivers/pci/xen-pcifront.c. Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/pci/xen-pcifront.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/xen-pcifront.c b/drivers/pci/xen-pcifront.c
index 6f819988a8da..98387caf59b3 100644
--- a/drivers/pci/xen-pcifront.c
+++ b/drivers/pci/xen-pcifront.c
@@ -593,7 +593,7 @@ static pci_ers_result_t pcifront_common_process(int cmd,
}
pdrv = pcidev->driver;
- if (pdrv->driver) {
+ if (pdrv) {
if (pdrv->err_handler && pdrv->err_handler->error_detected) {
dev_dbg(&pcidev->dev,
"trying to call AER service\n");