qcacmn: Add a missing lock for del_ast

Add a missing lock for protecting AST table while
deleting an AST entry in STA roaming case

Change-Id: I38b08c71e4080867780ba81063ac9d7a73962e04
This commit is contained in:
Pamidipati, Vijay
2018-08-23 16:00:44 +05:30
zatwierdzone przez nshrivas
rodzic a76abc45d7
commit 3eab5b1b92
2 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@@ -548,6 +548,10 @@ void dp_peer_del_ast(struct dp_soc *soc, struct dp_ast_entry *ast_entry)
soc->ast_table[ast_entry->ast_idx] = NULL;
TAILQ_REMOVE(&peer->ast_entry_list, ast_entry, ase_list_elem);
if (ast_entry == peer->self_ast_entry)
peer->self_ast_entry = NULL;
DP_STATS_INC(soc, ast.deleted, 1);
dp_peer_ast_hash_remove(soc, ast_entry);
qdf_mem_free(ast_entry);