PCI MSI: Fix undefined shift by 32
authorMatthew Wilcox <willy@wil.cx>
Thu, 22 Jan 2009 00:19:19 +0000 (19:19 -0500)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 27 Jan 2009 17:53:25 +0000 (09:53 -0800)
commitbffac3c593eba1f9da3efd0199e49ea6558a40ce
treef2f91533d36172cef57cca43c8050ec265b978d8
parent476e7faefc43f106a90b5c96166c59b75de19d30
PCI MSI: Fix undefined shift by 32

Add an msi_mask() function which returns the correct bitmask for the
number of MSI interrupts you have.  This fixes an undefined bug in
msi_capability_init().

Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/msi.c