Skip to content

Commit 96050df

Browse files
Peter Bothatorvalds
authored andcommitted
char: mxser, fix ISA board lookup
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" <peterb@goldcircle.co.za> Signed-off-by: Jiri Slaby <jirislaby@gmail.com> Acked-by: Alan Cox <alan@lxorguk.ukuu.org.uk> Cc: <stable@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent a61d90d commit 96050df

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/char/mxser.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2711,7 +2711,7 @@ static int __init mxser_module_init(void)
27112711
continue;
27122712

27132713
brd = &mxser_boards[m];
2714-
retval = mxser_get_ISA_conf(!ioaddr[b], brd);
2714+
retval = mxser_get_ISA_conf(ioaddr[b], brd);
27152715
if (retval <= 0) {
27162716
brd->info = NULL;
27172717
continue;

0 commit comments

Comments
 (0)