qcacld-3.0: Fix array out-of-bound access in hdd_update_mac_config()

Fix array out-of-bound access in hdd_update_mac_config().

Change-Id: I8cd143c0db033ede780df8a93650917db4ede82d
CRs-Fixed: 2029437
This commit is contained in:
Srinivas Girigowda 2017-04-05 11:38:48 -07:00 • committed by Sandeep Puligilla
commit fb20a95766

View file

@ -5828,7 +5828,7 @@ QDF_STATUS hdd_update_mac_config(hdd_context_t *pHddCtx)
}
buffer = temp;
qdf_mem_copy(buffer, fw->data, fw->size);
buffer[fw->size + 1] = 0x0;
buffer[fw->size] = 0x0;
/* data format:
* Intf0MacAddress=00AA00BB00CC