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:
Tiger Yu
2021-03-31 16:47:24 +08:00
committed by snandini
vanhempi b1faf3e88d
commit f7f01e0c10

Näytä tiedosto

@@ -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);
}
/*