|
@@ -1303,6 +1303,9 @@ static int cnic_alloc_bnx2x_resc(struct cnic_dev *dev)
|
|
|
if (ret)
|
|
|
goto error;
|
|
|
|
|
|
+ if (cp->ethdev->drv_state & CNIC_DRV_STATE_NO_ISCSI)
|
|
|
+ return 0;
|
|
|
+
|
|
|
cp->bnx2x_def_status_blk = cp->ethdev->irq_arr[1].status_blk;
|
|
|
|
|
|
cp->l2_rx_ring_size = 15;
|
|
@@ -5351,7 +5354,7 @@ static void cnic_stop_hw(struct cnic_dev *dev)
|
|
|
/* Need to wait for the ring shutdown event to complete
|
|
|
* before clearing the CNIC_UP flag.
|
|
|
*/
|
|
|
- while (cp->udev->uio_dev != -1 && i < 15) {
|
|
|
+ while (cp->udev && cp->udev->uio_dev != -1 && i < 15) {
|
|
|
msleep(100);
|
|
|
i++;
|
|
|
}
|