I made a mistake, please ignore this. ________________________________ 发件人: Wang Li <[email protected]> 发送时间: 2019年6月25日 20:42:14 收件人: [email protected] 抄送: Wang,Li(ACG Cloud) 主题: [PATCH] ovs-rcu: Fix potential double free issue
From: Wang Li <[email protected]> If pthread_setspecific set value of the key to NULL, then it will trigger the destructor function ovsrcu_thread_exit_cb to call ovsrcu_unregister__ implicitly, so we have to remove it here to avoid potential double free issue. Signed-off-by: Wang Li <[email protected]> --- lib/ovs-rcu.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/ovs-rcu.c b/lib/ovs-rcu.c index ebc8120f0..3adfe5c3f 100644 --- a/lib/ovs-rcu.c +++ b/lib/ovs-rcu.c @@ -134,7 +134,6 @@ ovsrcu_quiesce_start(void) perthread = pthread_getspecific(perthread_key); if (perthread) { pthread_setspecific(perthread_key, NULL); - ovsrcu_unregister__(perthread); } ovsrcu_quiesced(); -- 2.15.2 (Apple Git-101.1) _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
