From: Michael Ellerman Date: Thu, 5 Apr 2007 07:19:12 +0000 (+1000) Subject: MSI: Remove dev->first_msi_irq X-Git-Tag: v2.6.22-rc1~1039^2~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=314e77b3eec57001eaff82b82920150175b74e09;p=pandora-kernel.git MSI: Remove dev->first_msi_irq Now that we keep a list of msi descriptors, we don't need first_msi_irq in the pci dev. If we somehow have zero MSIs configured list_entry() will give us weird oopes or nice memory corruption bugs. So be paranoid. Add BUG_ONs and also a check in pci_msi_check_device() to make sure nvec > 0. Signed-off-by: Michael Ellerman Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed