summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorSourav Mohapatra <mohapatr@codeaurora.org>2018-04-19 16:08:37 +0530
committernshrivas <nshrivas@codeaurora.org>2018-05-09 06:21:44 -0700
commitd40ca366811abd50176162009d640d217faccd10 (patch)
tree1e29da2a5981eac35b9e4ac6b24b93729779c56e /tools/perf/scripts/python
parentf83061317de276dca7b840065bcbf491db10bf11 (diff)
qcacld-3.0: Initialize variable to prevent potential information leak
In the function drv_cmd_set_mc_rate, the variable targetRate, used to store the value parsed from the command from user space, is not initialized. The variable is assigned value inside a kernel API kstrtouint that converts the string to an unsigned int. In a certain case if the kernel API fails, it returns an error code without assigning any value to the passed parameter. In this scenario, the variable targetRate, still uninitialized is passed on to function wlan_hdd_set_mc_rate where it is logged using hdd_debug. As the flow goes on, it is then again logged using WMA_LOGE(). This might lead to potential information leak. Initialize the variable to zero to prevent the mentioned scenario. Change-Id: Ideec0b1930e994f19ae8a669cd2963db4016eae1 CRs-Fixed: 2226172
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions