diff --git a/core/mac/src/pe/lim/lim_process_message_queue.c b/core/mac/src/pe/lim/lim_process_message_queue.c index 762001187c..a27a2406b3 100644 --- a/core/mac/src/pe/lim/lim_process_message_queue.c +++ b/core/mac/src/pe/lim/lim_process_message_queue.c @@ -874,7 +874,7 @@ static QDF_STATUS lim_allocate_and_get_bcn( tSchBeaconStruct *bcn_l = NULL; cds_pkt_t *pkt_l = NULL; - pkt_l = qdf_mem_malloc(sizeof(cds_pkt_t)); + pkt_l = qdf_mem_malloc_atomic(sizeof(cds_pkt_t)); if (!pkt_l) return QDF_STATUS_E_FAILURE; @@ -885,7 +885,7 @@ static QDF_STATUS lim_allocate_and_get_bcn( goto free; } - bcn_l = qdf_mem_malloc(sizeof(tSchBeaconStruct)); + bcn_l = qdf_mem_malloc_atomic(sizeof(tSchBeaconStruct)); if (!bcn_l) goto free; diff --git a/core/mac/src/sys/legacy/src/utils/src/parser_api.c b/core/mac/src/sys/legacy/src/utils/src/parser_api.c index 19776a2223..64efedc583 100644 --- a/core/mac/src/sys/legacy/src/utils/src/parser_api.c +++ b/core/mac/src/sys/legacy/src/utils/src/parser_api.c @@ -4172,7 +4172,7 @@ sir_convert_beacon_frame2_struct(struct mac_context *mac, /* Zero-init our [out] parameter, */ qdf_mem_zero((uint8_t *) pBeaconStruct, sizeof(tSirProbeRespBeacon)); - pBeacon = qdf_mem_malloc(sizeof(tDot11fBeacon)); + pBeacon = qdf_mem_malloc_atomic(sizeof(tDot11fBeacon)); if (!pBeacon) return QDF_STATUS_E_NOMEM;