From ab628711da885bd140e8f572d09d705ddcd920a0 Mon Sep 17 00:00:00 2001 From: Varun Reddy Yeturu Date: Tue, 2 Jan 2018 11:54:23 -0800 Subject: [PATCH] qcacld-3.0: Check for valid FILS info before referencing Check if the FILS info is populated before deferencing the value for the same. Change-Id: Iabc7d11c4033c92a4047d29da915415cf5ca1167 CRs-Fixed: 2162242 --- core/mac/src/pe/lim/lim_process_fils.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/mac/src/pe/lim/lim_process_fils.c b/core/mac/src/pe/lim/lim_process_fils.c index aff6be6fb309..1d6141a0aaf8 100644 --- a/core/mac/src/pe/lim/lim_process_fils.c +++ b/core/mac/src/pe/lim/lim_process_fils.c @@ -1849,6 +1849,10 @@ void lim_update_fils_rik(tpPESession pe_session, return; } + if (!pe_fils_info) { + pe_debug("No FILS info available in the session"); + return; + } if ((pe_fils_info->fils_rik_len > FILS_MAX_RIK_LENGTH) || !pe_fils_info->fils_rik) { pe_err("Fils rik len(%d) max %d", pe_fils_info->fils_rik_len,