From: Alan Stern Date: Fri, 27 Jan 2012 15:24:40 +0000 (-0500) Subject: PCI/XEN: Fix bug introduced by a recent change X-Git-Tag: MMI-PSA29.97-13-9~17269^2~39 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=07d251460bbf9752c6532af8c1a68328c199dd70;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman --- 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");