Commit missed driver_info to driver_ivar change in usb_attach_args.

Pointed out by:	kib
This commit is contained in:
Andrew Thompson 2009-06-08 19:56:23 +00:00
parent 2fa32154e4
commit 5cdee58296

View File

@ -149,7 +149,7 @@ ndisusb_match(device_t self)
db = windrv_match((matchfuncptr)ndisusb_devcompare, self);
if (db == NULL)
return (ENXIO);
uaa->driver_info = db;
uaa->driver_ivar = db;
return (0);
}
@ -165,7 +165,7 @@ ndisusb_attach(device_t self)
driver_object *drv;
int devidx = 0;
db = uaa->driver_info;
db = uaa->driver_ivar;
sc = (struct ndis_softc *)dummy;
sc->ndis_dev = self;
mtx_init(&sc->ndisusb_mtx, "NDIS USB", MTX_NETWORK_LOCK, MTX_DEF);