Hello,

I read sys/dev/usb/if_cdce.c and found sc->cdce_unit is refered but
none initializes. Maybe the fix is required like this :-

Index: if_cdce.c
===================================================================
RCS file: /cvs/src/sys/dev/usb/if_cdce.c,v
retrieving revision 1.57
diff -u -p -r1.57 if_cdce.c
--- if_cdce.c   15 Nov 2013 10:17:39 -0000      1.57
+++ if_cdce.c   3 Dec 2013 20:36:44 -0000
@@ -177,6 +177,7 @@ cdce_attach(struct device *parent, struc
        int                              ctl_ifcno = -1;
        int                              data_ifcno = -1;
 
+       sc->cdce_unit = self->dv_unit;
        sc->cdce_udev = uaa->device;
        sc->cdce_ctl_iface = uaa->iface;
        id = usbd_get_interface_descriptor(sc->cdce_ctl_iface);

And, sc->sc_unit of sys/dev/usb/if_cdcef.c seems to have save problem.

Regards,
-- 
SASANO Takayoshi <u...@mx5.nisiq.net>

Reply via email to