Make sure all tasks are cancelled synchronously in ipoib to avoid
use after free. Sponsored by: Mellanox Technologies
This commit is contained in:
parent
68732efcd9
commit
fd9e423c88
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/projects/bsd_rdma_4_9/; revision=326149
@ -830,7 +830,7 @@ void ipoib_cm_dev_stop(struct ipoib_dev_priv *priv)
|
||||
|
||||
ipoib_cm_free_rx_reap_list(priv);
|
||||
|
||||
cancel_delayed_work(&priv->cm.stale_task);
|
||||
cancel_delayed_work_sync(&priv->cm.stale_task);
|
||||
}
|
||||
|
||||
static int ipoib_cm_rep_handler(struct ib_cm_id *cm_id, struct ib_cm_event *event)
|
||||
|
Loading…
Reference in New Issue
Block a user