From: Matthew Wilcox Date: Mon, 9 Feb 2009 03:27:47 +0000 (-0700) Subject: PCI/MSI: fix msi_mask() shift fix X-Git-Tag: v2.6.29-rc6~77^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b49ec37a20bc7eb7178105aadaa8d1ecba825f8;p=pandora-kernel.git PCI/MSI: fix msi_mask() shift fix Hidetoshi Seto points out that commit bffac3c593eba1f9da3efd0199e49ea6558a40ce has wrong values in the array. Rather than correct the array, we can just use a bounds check and perform the calculation specified in the comment. As a bonus, this will not run off the end of the array if the device specifies an illegal value in the MSI capability. Signed-off-by: Matthew Wilcox Signed-off-by: Hidetoshi Seto Signed-off-by: Jesse Barnes --- Reading git-diff-tree failed