Re: Linux 2.3.18ac9

Dag Brattli (dagb@cs.uit.no)
28 Sep 1999 09:06:21 +0200


Dag Brattli <dagb@cs.uit.no> writes:

> Daniel.Egger@t-online.de writes:
>
> > On 27 Sep, Alan Cox wrote:
> >
> > > o IRDA Updates (Dag Brattli)
> >
> > ircomm oopses very badly (with 2.3.18ac7 too) as soon as I
> > "irattach /dev/ttyS1" and let my Palm try to HotSync via IrDA.
> > Unfortunately it shoots down whole Linux so I can't include
> > any Oops for your reference ....
>
> I had to make some changes for the device drivers in order to make sure the
> RTNL semaphore was taken (only once). In previous versions, the IrDA
> drivers would take themselves up/down so you didn't need to ifconfig them,
> but this was a bad design that I knew would cause me problems one day
> (which is now ;-)
>
> But now you need to do this with ifconfig yourself (until I have built this
> into irattach). If this change causes an Oops for you then please send me
> your IrDA config (modules/non-modular etc)

Found the bug. If you receive an IrDA frame after you have done irattach,
but before you have done ifconfig irda0 up, then the machine will crash ;-)

Really nice! Kill your Linux machine with your remote control ;-) However,
it will only apply to ac7-ac9, and probably only for IrDA frames, so the
remote control will not work (but your Palm III will).

I have made a small fix that I will ship over to Alan asap.

-- Dag

-- 
   / Dag Brattli                   | The Linux-IrDA Project               /
  // University of Tromsoe, Norway | Infrared communication for Linux    //
 /// http://www.cs.uit.no/~dagb    | http://www.cs.uit.no/linux-irda/   ///

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/