--- - branch: MAIN date: Wed Aug 28 06:07:21 UTC 2019 files: - new: '1.24' old: '1.23' path: src/sys/dev/usb/usbnet.c pathrev: src/sys/dev/usb/usbnet.c@1.24 type: modified id: 20190828T060721Z.8b72cd699cc8d107a3da917a53b644a9f5ee69ef log: | in usbnet_detach(), check both that the private pointer has been allocated and that unp_attached is true before trying to access anything else. fixes a detach problem noticed by maxv when, eg, the call to usbd_set_config_no() fails and attach bails early. module: src subject: 'CVS commit: src/sys/dev/usb' unixtime: '1566972441' user: mrg