qcacmn: Add sanity checking before removing ase from soc AST hash table
Add sanity checking before removing the ase from soc AST hash table to avoid potential stability issue if ase is not found in the table. Change-Id: I97b756cd5bdb052b0ce797cca5d96c6bac8f844e CRs-fixed: 2912024
This commit is contained in:
@@ -803,7 +803,9 @@ void dp_peer_ast_hash_remove(struct dp_soc *soc,
|
||||
}
|
||||
|
||||
QDF_ASSERT(found);
|
||||
TAILQ_REMOVE(&soc->ast_hash.bins[index], ase, hash_list_elem);
|
||||
|
||||
if (found)
|
||||
TAILQ_REMOVE(&soc->ast_hash.bins[index], ase, hash_list_elem);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Viittaa uudesa ongelmassa
Block a user