From: Peter Botha Date: Wed, 10 Jun 2009 00:16:32 +0000 (-0700) Subject: char: mxser, fix ISA board lookup X-Git-Tag: v2.6.29.6~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a2d8254ba67a1ce5a2cdcf934eea0fc63d41d08;p=thirdparty%2Fkernel%2Fstable.git char: mxser, fix ISA board lookup commit 96050dfb25966612008dcea7d342e91fa01e993c upstream. There's a bug in the mxser kernel module that still appears in the 2.6.29.4 kernel. mxser_get_ISA_conf takes a ioaddress as its first argument, by passing the not of the ioaddr, you're effectively passing 0 which means it won't be able to talk to an ISA card. I have tested this, and removing the ! fixes the problem. Cc: "Peter Botha" Signed-off-by: Jiri Slaby Acked-by: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/char/mxser.c b/drivers/char/mxser.c index 402c9f217f83a..ac572a9eda5f5 100644 --- a/drivers/char/mxser.c +++ b/drivers/char/mxser.c @@ -2712,7 +2712,7 @@ static int __init mxser_module_init(void) continue; brd = &mxser_boards[m]; - retval = mxser_get_ISA_conf(!ioaddr[b], brd); + retval = mxser_get_ISA_conf(ioaddr[b], brd); if (retval <= 0) { brd->info = NULL; continue;