kernel - Fix panic in uhci attach error path (2)
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 30 Mar 2019 03:21:39 +0000 (20:21 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 30 Mar 2019 03:21:58 +0000 (20:21 -0700)
* Add missing header file for last commit.

sys/bus/u4b/controller/uhci.h

index e73b671..e971b76 100644 (file)
@@ -233,6 +233,7 @@ typedef struct uhci_softc {
 
        uint8_t sc_addr;                /* device address */
        uint8_t sc_conf;                /* device configuration */
+       uint8_t sc_didinit;             /* uchi_init() called */
        uint8_t sc_isreset;             /* bits set if a root hub is reset */
        uint8_t sc_isresumed;           /* bits set if a port was resumed */
        uint8_t sc_hub_idata[1];