Date: Fri, 24 Nov 2017 09:55:20 +0000 (UTC) From: Hans Petter Selasky <hselasky@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r326149 - projects/bsd_rdma_4_9/sys/ofed/drivers/infiniband/ulp/ipoib Message-ID: <201711240955.vAO9tK2q034752@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: hselasky Date: Fri Nov 24 09:55:20 2017 New Revision: 326149 URL: https://svnweb.freebsd.org/changeset/base/326149 Log: Make sure all tasks are cancelled synchronously in ipoib to avoid use after free. Sponsored by: Mellanox Technologies Modified: projects/bsd_rdma_4_9/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_cm.c Modified: projects/bsd_rdma_4_9/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_cm.c ============================================================================== --- projects/bsd_rdma_4_9/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_cm.c Fri Nov 24 09:52:56 2017 (r326148) +++ projects/bsd_rdma_4_9/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_cm.c Fri Nov 24 09:55:20 2017 (r326149) @@ -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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201711240955.vAO9tK2q034752>