diff options
author | Matthew Wilcox <matthew@wil.cx> | 2009-02-08 20:27:47 -0700 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-02-13 11:59:03 -0800 |
commit | 0b49ec37a20bc7eb7178105aadaa8d1ecba825f8 (patch) | |
tree | 4558a778c20048bd519b444a1d8381087592397f /drivers/staging/poch | |
parent | 37bed90094fdb1eea6e4afec6a200d4e60143e55 (diff) |
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 <willy@linux.intel.com>
Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/staging/poch')
0 files changed, 0 insertions, 0 deletions