提交 07d25146 编写于 作者: A Alan Stern 提交者: Greg Kroah-Hartman

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: NStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 ed283e9f
...@@ -593,7 +593,7 @@ static pci_ers_result_t pcifront_common_process(int cmd, ...@@ -593,7 +593,7 @@ static pci_ers_result_t pcifront_common_process(int cmd,
} }
pdrv = pcidev->driver; pdrv = pcidev->driver;
if (pdrv->driver) { if (pdrv) {
if (pdrv->err_handler && pdrv->err_handler->error_detected) { if (pdrv->err_handler && pdrv->err_handler->error_detected) {
dev_dbg(&pcidev->dev, dev_dbg(&pcidev->dev,
"trying to call AER service\n"); "trying to call AER service\n");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册