diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index 1810f28fd..1e303224b 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -3289,7 +3289,7 @@ static void srpt_remove_one(struct ib_device *device) * kernels do not have a facility to cancel scheduled work, so * wait until the scheduled work finished. */ - flush_workqueue(&sdev->port[i].work); + flush_scheduled_work(); #endif ib_destroy_cm_id(sdev->cm_id);