public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Christian Laursen <xi@borderworlds.dk>
To: Stephan von Krawczynski <skraw@ithnet.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: NULL pointer dereference in moxa driver
Date: 10 Dec 2001 20:12:35 +0100	[thread overview]
Message-ID: <m3pu5mnb30.fsf@borg.borderworlds.dk> (raw)
In-Reply-To: <m3zo4rm05v.fsf@borg.borderworlds.dk> <20011210194003.1cb9f54a.skraw@ithnet.com>
In-Reply-To: <20011210194003.1cb9f54a.skraw@ithnet.com>

Stephan von Krawczynski <skraw@ithnet.com> writes:

> On 10 Dec 2001 18:53:48 +0100
> Christian Laursen <xi@borderworlds.dk> wrote:
> 
> > I have a problem when trying to use two of the serial cards known as
> > MOXA C104H/PCI.
> > 
> > When only using one, everything works like a charm, but when
> > an attempt is made to access a serial port on the second card,
> > I get a NULL pointer dereference.
> > 
> > 
> > This is the relevant output from dmesg:
> > 
> > MOXA Smartio family driver version 1.2
> > Tty devices major number = 174, callout devices major number = 175
> > Found MOXA C104H/PCI series board(BusNo=0,DevNo=10)
> > 
> > 
> > The relevant stuff from /proc/pci:
> > 
> >   Bus  0, device  10, function  0:
> >     Serial controller: Moxa Technologies Co Ltd Smartio C104H/PCI (rev 2).
> >       IRQ 10.
> >       I/O at 0xa800 [0xa87f].
> >       I/O at 0xa400 [0xa43f].
> >       I/O at 0xa000 [0xa00f].
> >   Bus  0, device  11, function  0:
> >     Serial controller: Moxa Technologies Co Ltd Smartio C104H/PCI (#2) (rev 2).
> >       IRQ 11.
> >       I/O at 0x9800 [0x987f].
> >       I/O at 0x9400 [0x943f].
> >       I/O at 0x9000 [0x900f].
> 
> Well there you have it: they didn't recognise the second board at
> all. The dmesg should show it, but does not.  Please try attached
> patch to mxser.c. I cannot test, I have no two cards (in fact I
> haven't a single one either ;-). If it works out tell me and send
> patch to support@moxa.com.tw with regards from me :-)

Well, now it finds both the cards. :)

MOXA Smartio family driver version 1.2
Tty devices major number = 174, callout devices major number = 175
Found MOXA C104H/PCI series board(BusNo=0,DevNo=10)
Found MOXA C104H/PCI series board(BusNo=0,DevNo=11)

However, access to the second one still results in the oops. :-/

-- 
Best regards
    Christian Laursen

  reply	other threads:[~2001-12-10 19:13 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-10 17:53 NULL pointer dereference in moxa driver Christian Laursen
2001-12-10 18:26 ` Christian Laursen
2001-12-10 18:40 ` Stephan von Krawczynski
2001-12-10 19:12   ` Christian Laursen [this message]
     [not found] <m37krtl6cv.fsf@borg.borderworlds.dk>
2001-12-11 23:23 ` Stephan von Krawczynski
2001-12-11 23:51   ` Alan Cox
2001-12-11 23:29     ` Tim Hockin
2001-12-12  2:48       ` Stephan von Krawczynski
2001-12-11 23:58     ` Christian Laursen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3pu5mnb30.fsf@borg.borderworlds.dk \
    --to=xi@borderworlds.dk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=skraw@ithnet.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox