qcacld-3.0: Fix uninitialised variable use

Initialize packet pointer with NULL to avoid wild pointer dereferencing.

Change-Id: Iff756659ed463e15796350d0a73486923b92e19f
CRs-Fixed: 1027693
这个提交包含在:
Arif Hussain
2016-06-15 12:57:43 -07:00
提交者 Nandini Suresh
父节点 90fd18c141
当前提交 fbf5068ddd

查看文件

@@ -516,7 +516,7 @@ lim_send_probe_rsp_mgmt_frame(tpAniSirGlobal mac_ctx,
uint32_t cfg, payload, bytes, status; uint32_t cfg, payload, bytes, status;
tpSirMacMgmtHdr mac_hdr; tpSirMacMgmtHdr mac_hdr;
uint8_t *frame; uint8_t *frame;
void *packet; void *packet = NULL;
QDF_STATUS qdf_status; QDF_STATUS qdf_status;
uint32_t addn_ie_present = false; uint32_t addn_ie_present = false;