be2net: signedness bug in be_msix_enable()
"num_vec" needs to be signed for the error handling to work. Fixes: e261768e9e39 ('be2net: support asymmetric rx/tx queue counts') Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Sathya Perla <sathya.perla@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
9b9a553c90
commit
6fde0e63ec
@ -3251,8 +3251,9 @@ static void be_msix_disable(struct be_adapter *adapter)
|
|||||||
|
|
||||||
static int be_msix_enable(struct be_adapter *adapter)
|
static int be_msix_enable(struct be_adapter *adapter)
|
||||||
{
|
{
|
||||||
unsigned int i, num_vec, max_roce_eqs;
|
unsigned int i, max_roce_eqs;
|
||||||
struct device *dev = &adapter->pdev->dev;
|
struct device *dev = &adapter->pdev->dev;
|
||||||
|
int num_vec;
|
||||||
|
|
||||||
/* If RoCE is supported, program the max number of vectors that
|
/* If RoCE is supported, program the max number of vectors that
|
||||||
* could be used for NIC and RoCE, else, just program the number
|
* could be used for NIC and RoCE, else, just program the number
|
||||||
|
Loading…
x
Reference in New Issue
Block a user