--- a/net/smc/smc_ib.c +++ b/net/smc/smc_ib.c @@ -580,6 +580,7 @@ static void smc_ib_remove_dev(struct ib_ smc_smcr_terminate_all(smcibdev); smc_ib_cleanup_per_ibdev(smcibdev); ib_unregister_event_handler(&smcibdev->event_handler); + cancel_work_sync(&smcibdev->port_event_work); kfree(smcibdev); }