提交 6fde0e63 编写于 作者: D Dan Carpenter 提交者: David S. Miller

be2net: signedness bug in be_msix_enable()

"num_vec" needs to be signed for the error handling to work.

Fixes: e261768e ('be2net: support asymmetric rx/tx queue counts')
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Acked-by: NSathya Perla <sathya.perla@broadcom.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 9b9a553c
......@@ -3251,8 +3251,9 @@ static void be_msix_disable(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;
int num_vec;
/* If RoCE is supported, program the max number of vectors that
* could be used for NIC and RoCE, else, just program the number
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册