tulip.c (maybe) bug???

Stefano Giacometti (stefano.giacometti@ericsson.com)
Mon, 24 May 1999 12:01:03 +0200


I'm playing with the last tulip.c version driver (v0.91, 4/14/99). I am
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?

static int private_ioctl(struct device *dev, struct ifreq *rq, int cmd)
{
struct tulip_private *tp = (struct tulip_private *)dev->priv;
long ioaddr = dev->base_addr;
- u16 *data = (u16 *)&rq->ifr_data;
+ u16 *data = (u16 *)rq->ifr_data;
int phy = tp->phys[0] & 0x1f;
long flags;

Thanks!

Stefano

******************************************************************
Stefano Giacometti
CoRiTeL - Consorzio di Ricerca sulle Telecomunicazioni

EMAIL : giacometti@coritel.it URL : http://www.coritel.it
TEL : +39-06-20410028 ADDRESS : Via di Tor Vergata, 135
FAX : +39-06-20410037 00133 Roma - ITALY
ICQ : 1051773
******************************************************************
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.rutgers.edu