diff options
| author | gaurank kathpalia <gkathpal@codeaurora.org> | 2019-03-08 13:36:11 +0530 |
|---|---|---|
| committer | nshrivas <nshrivas@codeaurora.org> | 2019-03-19 05:04:10 -0700 |
| commit | a85d5c396c386507063243ba4f04116a4b0a28e0 (patch) | |
| tree | 53754563828504b8e4a5224252ff17c6bbe7f337 | |
| parent | ed7be1c2df821537975d6e9632b69f75862919cc (diff) | |
qcacmn: Clear Key information from driver memory after disconnect
Currently the key information i.e the key, and the number of keys
are not getting cleared on wifi link disconnection from wifi
driver memory, which can lead to information disclosure.
Clear the key information i.e the number of keys and
keys from wifi driver memory to avoid any potential information
disclore after wifi is turned off.
Change-Id: I2a3ea56d4e876b48dd7a5e456ed7d139600fab01
CRs-Fixed: 2415421
| -rw-r--r-- | wmi/src/wmi_unified_tlv.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/wmi/src/wmi_unified_tlv.c b/wmi/src/wmi_unified_tlv.c index af9039b0a282..3911ec9a637b 100644 --- a/wmi/src/wmi_unified_tlv.c +++ b/wmi/src/wmi_unified_tlv.c @@ -3926,9 +3926,10 @@ QDF_STATUS send_setup_install_key_cmd_tlv(wmi_unified_t wmi_handle, status = wmi_unified_cmd_send(wmi_handle, buf, len, WMI_VDEV_INSTALL_KEY_CMDID); - if (QDF_IS_STATUS_ERROR(status)) + if (QDF_IS_STATUS_ERROR(status)) { + qdf_mem_zero(wmi_buf_data(buf), len); wmi_buf_free(buf); - + } return status; } |
