Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libhns: Fix several context locks issue
[ Upstream commit 6772962 ] Fix several context lock issue: 1. db_list_mutex is used without init currently. Add its init to hns_roce_alloc_context(). 2. pthread_mutex_init()/pthread_spin_init() may return error value. Check the return value in hns_roce_alloc_context(). 3. Add destruction for these context locks. 4. Encapsulate init and destruction functions for these context locks. Fixes: 13eae88 ("libhns: Support rq record doorbell") Fixes: 887b78c ("libhns: Add initial main frame") Signed-off-by: Junxian Huang <[email protected]> Signed-off-by: Nicolas Morey <[email protected]>
- Loading branch information