RE: tulip.c (maybe) bug???

Stefano Giacometti (stefano.giacometti@ericsson.com)
Tue, 25 May 1999 15:38:47 +0200


Have you got some code that uses these ioctl?

> -----Original Message-----
> From: Alan Cox [mailto:alan@lxorguk.ukuu.org.uk]
> Sent: marted́ 25 maggio 1999 15.54
> To: Stefano Giacometti
> Cc: linux-net@vger.rutgers.edu; becker@cesdis1.gsfc.nasa.gov
> Subject: Re: tulip.c (maybe) bug???
>
>
> > trying to use the private ioctl, but it seems to me that there is
> > a problem with the pointer address. Should this patch solve the
> > problem?
>
> The original code is correct
>
> > - u16 *data = (u16 *)&rq->ifr_data;
> > + u16 *data = (u16 *)rq->ifr_data;
>
> The patch breaks the driver. You are using rq->ifr_data as a pointer, it
> is not, it is the data instance
>

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.rutgers.edu