qcacld-3.0: Correct NULL pointer check in epping_cookie_init()
Propagate from qcacld-2.0 to qcacld-3.0 Currently in epping_cookie_init() when the cookie array is allocated the wrong pointer is checked for a NULL allocation. Update the function to check the correct pointer. Change-Id: I56384197a8729996d7aa87d3c51903525b3be93c CRs-Fixed: 979671
This commit is contained in:

committed by
qcabuildsw

parent
6d04e32123
commit
86492dee0d
@@ -62,7 +62,7 @@ int epping_cookie_init(epping_context_t *pEpping_ctx)
|
|||||||
pEpping_ctx->s_cookie_mem[i] =
|
pEpping_ctx->s_cookie_mem[i] =
|
||||||
qdf_mem_malloc(sizeof(struct epping_cookie) *
|
qdf_mem_malloc(sizeof(struct epping_cookie) *
|
||||||
MAX_COOKIE_SLOT_SIZE);
|
MAX_COOKIE_SLOT_SIZE);
|
||||||
if (pEpping_ctx->s_cookie_mem == NULL) {
|
if (pEpping_ctx->s_cookie_mem[i] == NULL) {
|
||||||
EPPING_LOG(QDF_TRACE_LEVEL_FATAL,
|
EPPING_LOG(QDF_TRACE_LEVEL_FATAL,
|
||||||
"%s: no mem for cookie (idx = %d)", __func__,
|
"%s: no mem for cookie (idx = %d)", __func__,
|
||||||
i);
|
i);
|
||||||
|
Reference in New Issue
Block a user