mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-17 14:30:00 +00:00
PCI: fix aer resume sanity check
What we have to check here before calling is err_handler->resume, not ->slot_reset. Looks like a copy & paste error from report_slot_reset. Acked-by: Yanmin Zhang <yanmin.zhang@intel.com> Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
This commit is contained in:
parent
1bda71282d
commit
b0b801dd7d
@ -252,7 +252,7 @@ static void report_resume(struct pci_dev *dev, void *data)
|
||||
|
||||
if (!dev->driver ||
|
||||
!dev->driver->err_handler ||
|
||||
!dev->driver->err_handler->slot_reset)
|
||||
!dev->driver->err_handler->resume)
|
||||
return;
|
||||
|
||||
err_handler = dev->driver->err_handler;
|
||||
|
Loading…
Reference in New Issue
Block a user