mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
qcacld-3.0: Avoid qdf_mem_cpy when source pointer is null
During SAP SSR scan default ie data pointer is cleared and set to null hence avoid unnecessary qdf_mem_cpy when source pointer is null. Change-Id: I75960c69804144abee5b1978b43002110b0d0be4 CRs-Fixed: 2161056
This commit is contained in:
parent
3f6a15ac26
commit
5d17dd531f
1 changed files with 3 additions and 0 deletions
|
|
@ -14744,6 +14744,9 @@ QDF_STATUS sme_set_default_scan_ie(tHalHandle hal, uint16_t session_id,
|
|||
tpAniSirGlobal mac_ctx = PMAC_STRUCT(hal);
|
||||
struct hdd_default_scan_ie *set_ie_params;
|
||||
|
||||
if (!ie_data)
|
||||
return QDF_STATUS_E_INVAL;
|
||||
|
||||
status = sme_acquire_global_lock(&mac_ctx->sme);
|
||||
if (QDF_IS_STATUS_SUCCESS(status)) {
|
||||
set_ie_params = qdf_mem_malloc(sizeof(*set_ie_params));
|
||||
|
|
|
|||
Loading…
Reference in a new issue