cxgbei: destroy the worker threads' CV and mutex in stop_worker_threads.

Reported by:	bz@
MFC after:	3 days
This commit is contained in:
Navdeep Parhar
2020-08-21 00:34:33 +00:00
parent 0929924b61
commit 11a82cd688
+2
View File
@@ -715,6 +715,8 @@ stop_worker_threads(void)
cv_wait(&cwt->cwt_cv, &cwt->cwt_lock);
} while (cwt->cwt_state != CWT_STOPPED);
mtx_unlock(&cwt->cwt_lock);
mtx_destroy(&cwt->cwt_lock);
cv_destroy(&cwt->cwt_cv);
}
free(cwt_softc, M_CXGBE);
}