diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2019-09-25 13:05:24 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-09-27 10:20:36 +0200 |
commit | 1a4b62a0b8a3b81eca24366f63e214a7144b9f02 (patch) | |
tree | 11ee966af036023fe3298e3ea60595154c0b26f9 /security | |
parent | of: mdio: Fix a signedness bug in of_phy_get_and_connect() (diff) | |
download | linux-1a4b62a0b8a3b81eca24366f63e214a7144b9f02.tar.xz linux-1a4b62a0b8a3b81eca24366f63e214a7144b9f02.zip |
net: nixge: Fix a signedness bug in nixge_probe()
The "priv->phy_mode" is an enum and in this context GCC will treat it
as an unsigned int so it can never be less than zero.
Fixes: 492caffa8a1a ("net: ethernet: nixge: Add support for National Instruments XGE netdev")
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