commit | 314e77b3eec57001eaff82b82920150175b74e09 | [log] [tgz] |
---|---|---|
author | Michael Ellerman <michael@ellerman.id.au> | Thu Apr 05 17:19:12 2007 +1000 |
committer | Greg Kroah-Hartman <gregkh@suse.de> | Wed May 02 19:02:37 2007 -0700 |
tree | 7446d5c9faaf4bf5dcde576961c68fbe1813c998 | |
parent | 4aa9bc955d61fdf03b5f9cee67db188fe1ffa8b7 [diff] |
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 <michael@ellerman.id.au> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>