John Ioannidis <[EMAIL PROTECTED]> writes:
> > > #define IRTTY_IOCGET _IOR(IRTTY_IOC_MAGIC, 2, struct irtty_info)
> >
> > Not that dangerous since the data is only copied out of the kernel, and
> > into a larger buffer (20 bytes instead of 6).
>
> It is not a matter of danger! The size of the buffer is encoded in the
> ioctl, and therefore the IRTTY_IOCGET ioctl was not being invoked
> (the call was returning invalid argument).
Yes, you're right! I've revoked the change in irattach, so the buffer size
is back to the original size so it will still be compatible with older
kernels.
-- 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/ ///
_______________________________________________
Linux-IrDA mailing list - [EMAIL PROTECTED]
http://www4.pasta.cs.UiT.No/mailman/listinfo/linux-irda