qcacld-3.0: Reinitialize mon_register_event before wait_for_completion
Reinitialize mon_register_event before wait_for_completion to make sure that it waits for fresh completion. "done" variable in struct completion increments in complete() API and decrements in wait_for_completion() API. In wait_for_completion() API, if "done" value is 0 then it will wait for the completion else it will continue without waiting. If reinitialization is not done, there is a possibility that wait_for_completion() may continue without waiting. Change-Id: I780103f551938438f27a11b006cc7c3e6edc6820 CRs-Fixed: 3251876
Loading
Please register or sign in to comment