iavf: Fix close path on shutdown and remove in iavfr driver.
cover iavf: Fix close path on shutdown and remove in iavfr driver.
From: Slawomir Laba <[email protected]>
iavf_shutdown was implementing an incomplete version of iavf_remove. It misses several calls to the kernel like iavf_free_misc_irq, iavf_reset_interrupt_capability, iounmap that might break the system on reboot or hibernation.
Fix a deadlock introduced by commit 974578017fc1
("iavf: Add waiting so the port is initialized in remove") due to race condition between iavf_shutdown and iavf_remove, where iavf_remove stucks forever in while loop since iavf_shutdown already set __IAVF_REMOVE adapter state.
SlawomirX Laba (2):
iavf: Fix shutdown pci callback to match the remove one
iavf: Fix race condition between iavf_shutdown and iavf_remove
drivers/net/ethernet/intel/iavf/iavf_main.c | 58 ++++++++------------- 1 file changed, 21 insertions(+), 37 deletions(-)
Signature · 6 lines
2.27.0 _______________________________________________ Intel-wired-lan mailing list [email protected] https://lists.osuosl.org/mailman/listinfo/intel-wired-lan