Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=809aa5048fb7e7fd3bf0aa1fb169c42db0f63b08
Commit:     809aa5048fb7e7fd3bf0aa1fb169c42db0f63b08
Parent:     818563dceccf695a71f8bd683a249e7bb09e3240
Author:     James Bottomley <[EMAIL PROTECTED]>
AuthorDate: Wed May 9 02:33:29 2007 -0700
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Wed May 9 12:30:49 2007 -0700

    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 <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
---
 drivers/mca/mca-bus.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mca/mca-bus.c b/drivers/mca/mca-bus.c
index da862e4..a70fe00 100644
--- a/drivers/mca/mca-bus.c
+++ b/drivers/mca/mca-bus.c
@@ -47,7 +47,7 @@ static int mca_bus_match (struct device *dev, struct 
device_driver *drv)
 {
        struct mca_device *mca_dev = to_mca_device (dev);
        struct mca_driver *mca_drv = to_mca_driver (drv);
-       const short *mca_ids = mca_drv->id_table;
+       const unsigned short *mca_ids = mca_drv->id_table;
        int i;
 
        if (!mca_ids)
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to