qcacmn: Fix crash observed on issuing iwpriv wifiX dl_loglevel <Val> command

On issuing iwpriv wifiX dl_loglevel <Val> command, there is a NULL pointer
dereference crash observed. It is root caused due to improper reference
to module_id_bitmap field, that needs to be corrected.

Change-Id: I59ff4455c74452bb00caff125f84213a2e9d7742
CRs-Fixed: 1066323
This commit is contained in:
Sathish Kumar 2016-09-16 17:57:15 +05:30 • committed by qcabuildsw
commit 90cb4608b0

View file

@ -1345,7 +1345,9 @@ send_dbglog_cmd_non_tlv(wmi_unified_t wmi_handle,
cmd->config.cfgvalid[0] = dbglog_param->cfgvalid[0];
cmd->config.cfgvalid[1] = dbglog_param->cfgvalid[1];
cmd->config.config.mod_id[0] = dbglog_param->module_id_bitmap[0];
qdf_mem_copy(&cmd->config.config.mod_id[0],
dbglog_param->module_id_bitmap,
sizeof(cmd->config.config.mod_id));
cmd->config.config.dbg_config = dbglog_param->val;
status = wmi_unified_cmd_send(wmi_handle, osbuf,