diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2019-09-25 13:05:54 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-09-27 10:21:44 +0200 |
commit | 231042181dc9d6122c6faba64e99ccb25f13cc6c (patch) | |
tree | 28c2ac29c20530c6ec7a1015f29306dbdae2ed74 /security | |
parent | net: nixge: Fix a signedness bug in nixge_probe() (diff) | |
download | linux-231042181dc9d6122c6faba64e99ccb25f13cc6c.tar.xz linux-231042181dc9d6122c6faba64e99ccb25f13cc6c.zip |
net: ethernet: stmmac: Fix signedness bug in ipq806x_gmac_of_parse()
The "gmac->phy_mode" variable is an enum and in this context GCC will
treat it as an unsigned int so the error handling will never be
triggered.
Fixes: b1c17215d718 ("stmmac: add ipq806x glue layer")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions