From: Dan Carpenter Date: Thu, 14 Jun 2012 08:34:24 +0000 (+0000) Subject: qlcnic: off by one in qlcnic_init_pci_info() X-Git-Tag: v3.5-rc5~17^2~46 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f6efff92524c65fc3ef41c8b936c526580f1db0;p=pandora-kernel.git 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 Acked-by: Anirban Chakraborty Signed-off-by: David S. Miller --- Reading git-diff-tree failed