diff options
author | 2019-10-01 13:24:39 -0700 | |
---|---|---|
committer | 2019-10-02 14:20:22 -0700 | |
commit | 53de429f4e88f538f7a8ec2b18be8c0cd9b2c8e1 (patch) | |
tree | 6c4b3dc78e76a49211dbaa32253af4a98e7fc2e3 /scripts/gdb/linux/utils.py | |
parent | Merge git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf (diff) | |
download | wireguard-linux-53de429f4e88f538f7a8ec2b18be8c0cd9b2c8e1.tar.xz wireguard-linux-53de429f4e88f538f7a8ec2b18be8c0cd9b2c8e1.zip |
net: hisilicon: Fix usage of uninitialized variable in function mdio_sc_cfg_reg_write()
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>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions