qcacmn: Fix uninitialized var ptr issue and null check for num_pscos

1.This change fixes the use of uninitialized
variable in host driver.

2.Adds NULL check for num_psocs in mlo_peer_calculate_avg_rssi to
avoid undefined behaviour.

Change-Id: Ifbfef42b5930dfe15736a75a74e81155c5f1fbce
CRs-Fixed: 3297794
Bu işleme şunda yer alıyor:
Asutosh Mohapatra
2022-09-22 16:28:22 +05:30
işlemeyi yapan: Madan Koyyalamudi
ebeveyn 93723c6fe1
işleme 9ab40cb89e
2 değiştirilmiş dosya ile 4 ekleme ve 1 silme

Dosyayı Görüntüle

@@ -4043,7 +4043,7 @@ int target_if_spectral_process_report_gen3(
int ret = 0;
struct direct_buf_rx_data *payload = buf;
struct target_if_spectral *spectral;
struct spectral_report report;
struct spectral_report report = {0};
int samp_msg_index;
struct spectral_data_stats *spectral_dp_stats;