[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20070214010623.E0FA7218500@adsl-69-226-248-13.dsl.pltn13.pacbell.net>
Date: Tue, 13 Feb 2007 17:06:23 -0800
From: David Brownell <david-b@...bell.net>
To: randy.dunlap@...cle.com, linux-usb-devel@...ts.sourceforge.net,
cebbert@...hat.com
Cc: linux-kernel@...r.kernel.org, davej@...hat.com
Subject: Re: [linux-usb-devel] Is this bug too obvious?
No bug; read net/ethernet/eth.c to see what that parameter means.
> > drivers/usb/net/usbnet.c:
> >
> > int
> > usbnet_probe (struct usb_interface *udev, const struct usb_device_id *prod)
> > {
> > struct usbnet *dev;
> > struct net_device *net;
> > struct usb_host_interface *interface;
> > struct driver_info *info;
> > struct usb_device *xdev;
> > int status;
> >
> > ...
> >
> > net = alloc_etherdev(sizeof(*dev));
> > ^^^^
> > *net ???
It's allocating *extra* space ... used just a few lines later:
dev = netdev_priv(net);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists