diff options
| -rw-r--r-- | core/sme/src/common/sme_api.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/sme/src/common/sme_api.c b/core/sme/src/common/sme_api.c index 7c476cfe12db..b70d41c28678 100644 --- a/core/sme/src/common/sme_api.c +++ b/core/sme/src/common/sme_api.c @@ -17381,6 +17381,11 @@ QDF_STATUS sme_get_beacon_frm(tHalHandle hal, tCsrRoamProfile *profile, bss_list = (tScanResultList *)result_handle; bss_descp = csr_get_fst_bssdescr_ptr(bss_list); + if (!bss_descp) { + sms_log(mac_ctx, LOGE, FL("unable to fetch bss descriptor")); + status = QDF_STATUS_E_FAULT; + goto free_scan_flter; + } /* * bss_descp->length = sizeof(tSirBssDescription) - sizeof(length_field) @@ -17411,6 +17416,6 @@ free_scan_flter: if (result_handle) csr_scan_result_purge(mac_ctx, result_handle); - return QDF_STATUS_SUCCESS; + return status; } |
