]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
cxgb4: Signedness bug in init_one()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 25 Sep 2019 10:54:59 +0000 (13:54 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Sep 2019 08:00:16 +0000 (10:00 +0200)
commit286183147666fb76c057836c57d86e9e6f508bca
treef6ad0db8593ef65469be8654c5be82178c552cd5
parent31aefe14bc9f56566041303d733fda511d3a1c3e
cxgb4: Signedness bug in init_one()

The "chip" variable is an enum, and it's treated as unsigned int by GCC
in this context so the error handling isn't triggered.

Fixes: e8d452923ae6 ("cxgb4: clean up init_one")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c