diff options
| author | Dan Carpenter <dan.carpenter@oracle.com> | 2019-09-25 14:05:54 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-01-29 10:21:49 +0100 |
| commit | cc3db046c0e393556b9ba82151e69a3d3343a4fe (patch) | |
| tree | eb0642922f904aa71ef7f41543c1fa5550a759cc /include/linux | |
| parent | 3f2a1b543304e7a4814e3b33dd7dabd6b5018ede (diff) | |
net: ethernet: stmmac: Fix signedness bug in ipq806x_gmac_of_parse()
[ Upstream commit 231042181dc9d6122c6faba64e99ccb25f13cc6c ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
