qlcnic: off by one in qlcnic_init_pci_info()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 14 Jun 2012 08:34:24 +0000 (08:34 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Jun 2012 22:30:15 +0000 (15:30 -0700)
commit0f6efff92524c65fc3ef41c8b936c526580f1db0
tree147fe0ff12046cabcb3a4c39d07a751b79707ddb
parent62b1a8ab9b3660bb820d8dfe23148ed6cda38574
qlcnic: off by one in qlcnic_init_pci_info()

The adapter->npars[] array has QLCNIC_MAX_PCI_FUNC elements.  We
allocate it that way a few lines earlier in the function.  So this test
is off by one.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Anirban Chakraborty <anirban.chakraborty@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c