Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Alan Stern and committed by
Greg Kroah-Hartman
07d25146 ed283e9f

+1 -1
+1 -1
drivers/pci/xen-pcifront.c
··· 593 593 } 594 594 pdrv = pcidev->driver; 595 595 596 - if (pdrv->driver) { 596 + if (pdrv) { 597 597 if (pdrv->err_handler && pdrv->err_handler->error_detected) { 598 598 dev_dbg(&pcidev->dev, 599 599 "trying to call AER service\n");