]> git.baikalelectronics.ru Git - kernel.git/commit
net: socionext: Fix a signedness bug in ave_probe()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 25 Sep 2019 10:57:50 +0000 (13:57 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Sep 2019 08:14:14 +0000 (10:14 +0200)
commit78f038fb6fb13ef873ad6f257043309d788d7a15
tree7d0036be2945f2d11a20e6b860496d356c402a84
parent1557f34578fd281b9609ec18995a10774533343c
net: socionext: Fix a signedness bug in ave_probe()

The "phy_mode" variable is an enum and in this context GCC treats it as
an unsigned int so the error handling is never triggered.

Fixes: d63832290b79 ("net: ethernet: socionext: add AVE ethernet driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/socionext/sni_ave.c