qcacld-3.0: Fix uninitialised variable use

Initialize packet pointer with NULL to avoid wild pointer dereferencing.

Change-Id: Iff756659ed463e15796350d0a73486923b92e19f
CRs-Fixed: 1027693
This commit is contained in:
Arif Hussain 2016-06-15 12:57:43 -07:00 • committed by Nandini Suresh
commit fbf5068ddd

View file

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