mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04:00
qcacmn: add null check in dp_peer_find_hash_find API
In cdp_soc_deinit peer hash table is freed to add check to avoid NULL access from CDP APIs which may do peer hash find Change-Id: I47c4126c34bb64d43112a4f8e268da1a98f4124d
This commit is contained in:
parent
dae503e5a1
commit
e81a22ce9b
1 changed files with 3 additions and 0 deletions
|
|
@ -1665,6 +1665,9 @@ struct dp_peer *dp_peer_find_hash_find(struct dp_soc *soc,
|
|||
unsigned index;
|
||||
struct dp_peer *peer;
|
||||
|
||||
if (!soc->peer_hash.bins)
|
||||
return NULL;
|
||||
|
||||
if (mac_addr_is_aligned) {
|
||||
mac_addr = (union dp_align_mac_addr *) peer_mac_addr;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue