]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5b618ac74dae46e30133986d897568572853ca0d
treef2f91533d36172cef57cca43c8050ec265b978d8
parent48827ed11a64fe148d5850178149b42d0cc3807c
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