mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fixed bug in disconnect handling in uhub.c
This commit is contained in:
parent
a2a2fd2ce4
commit
5602b5091c
1 changed files with 5 additions and 4 deletions
|
|
@ -183,8 +183,8 @@ __CONCAT(dname,_attach)(device_t self)
|
|||
#define USB_ATTACH_SUCCESS_RETURN return 0
|
||||
|
||||
#define USB_ATTACH_SETUP \
|
||||
usbd_device_set_desc(self, devinfo); \
|
||||
sc->sc_dev = self
|
||||
sc->sc_dev = self; \
|
||||
usbd_device_set_desc(self, devinfo)
|
||||
|
||||
#define USB_GET_SC_OPEN(dname, unit, sc) \
|
||||
struct __CONCAT(dname,_softc) *sc = \
|
||||
|
|
@ -196,8 +196,9 @@ __CONCAT(dname,_attach)(device_t self)
|
|||
struct __CONCAT(dname,_softc) *sc = \
|
||||
devclass_get_softc(__CONCAT(dname,_devclass), unit)
|
||||
|
||||
#define USB_DO_ATTACH(dev, bdev, parent, args, print, sub) \
|
||||
(device_probe_and_attach((bdev)) == 0 ? ((dev)->softc = (bdev)) : 0)
|
||||
#define USB_DO_ATTACH(dev, bdev, parent, args, print, sub) \
|
||||
(device_probe_and_attach((bdev)) == 0 ? \
|
||||
((dev)->softc = device_get_softc(bdev)) : 0)
|
||||
|
||||
/* conversion from one type of queue to the other */
|
||||
#define SIMPLEQ_REMOVE_HEAD STAILQ_REMOVE_HEAD_UNTIL
|
||||
|
|
|
|||
Loading…
Reference in a new issue