Print this page
9994 cxgbe t4nex: Handle get_fl_payload() alloc failures
9995 cxgbe t4_devo_attach() should initialize ->sfl

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
          +++ new/usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
↓ open down ↓ 309 lines elided ↑ open up ↑
 310  310                      "failed to allocate soft state: %d", rc);
 311  311                  return (DDI_FAILURE);
 312  312          }
 313  313  
 314  314          sc = ddi_get_soft_state(t4_list, instance);
 315  315          sc->dip = dip;
 316  316          sc->dev = makedevice(ddi_driver_major(dip), instance);
 317  317          mutex_init(&sc->lock, NULL, MUTEX_DRIVER, NULL);
 318  318          cv_init(&sc->cv, NULL, CV_DRIVER, NULL);
 319  319          mutex_init(&sc->sfl_lock, NULL, MUTEX_DRIVER, NULL);
      320 +        TAILQ_INIT(&sc->sfl);
 320  321  
 321  322          mutex_enter(&t4_adapter_list_lock);
 322  323          SLIST_INSERT_HEAD(&t4_adapter_list, sc, link);
 323  324          mutex_exit(&t4_adapter_list_lock);
 324  325  
 325  326          sc->pf = getpf(sc);
 326  327          if (sc->pf > 8) {
 327  328                  rc = EINVAL;
 328  329                  cxgb_printf(dip, CE_WARN,
 329  330                      "failed to determine PCI PF# of device");
↓ open down ↓ 2591 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX