]> git.baikalelectronics.ru Git - kernel.git/commit
mca: fix bus matching
authorJames Bottomley <James.Bottomley@SteelEye.com>
Wed, 9 May 2007 09:33:29 +0000 (02:33 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 9 May 2007 19:30:49 +0000 (12:30 -0700)
commitf8c186a06c4281514a7d7a46badfcda644dc6e46
tree11b46cfe54de960d7c5ea83c2ee31ee8222ad8b3
parent634f6d4859e54d4d788a84c3731c130a56e0682c
mca: fix bus matching

There's a bug in the MCA bus matching algorithm in that it promotes from
signed short to int before comparing with the actual id and does sign
extension on anything > 0x7fff (which means that pos ids > 0x7fff never get
correctly matched).

Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/mca/mca-bus.c