summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorYizhuo <yzhai003@ucr.edu>2019-10-01 13:24:39 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-10-29 09:13:20 +0100
commit74b2bee56dc05255bbeb520c3619580eaf8a530f (patch)
treea1a2107fd040939dbaebb8b9f86e0189781ef99f /tools/perf/scripts/python
parentebc93dc0b776528ca2ad02c8cc04a556897d109f (diff)
net: hisilicon: Fix usage of uninitialized variable in function mdio_sc_cfg_reg_write()
[ Upstream commit 53de429f4e88f538f7a8ec2b18be8c0cd9b2c8e1 ] In function mdio_sc_cfg_reg_write(), variable "reg_value" could be uninitialized if regmap_read() fails. However, "reg_value" is used to decide the control flow later in the if statement, which is potentially unsafe. Signed-off-by: Yizhuo <yzhai003@ucr.edu> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions