|
@@ -1224,8 +1224,12 @@ static int qedi_set_path(struct Scsi_Host *shost, struct iscsi_path *path_data)
|
|
|
|
|
|
iscsi_cid = (u32)path_data->handle;
|
|
|
qedi_ep = qedi->ep_tbl[iscsi_cid];
|
|
|
- QEDI_INFO(&qedi->dbg_ctx, QEDI_LOG_CONN,
|
|
|
+ QEDI_INFO(&qedi->dbg_ctx, QEDI_LOG_INFO,
|
|
|
"iscsi_cid=0x%x, qedi_ep=%p\n", iscsi_cid, qedi_ep);
|
|
|
+ if (!qedi_ep) {
|
|
|
+ ret = -EINVAL;
|
|
|
+ goto set_path_exit;
|
|
|
+ }
|
|
|
|
|
|
if (!is_valid_ether_addr(&path_data->mac_addr[0])) {
|
|
|
QEDI_NOTICE(&qedi->dbg_ctx, "dst mac NOT VALID\n");
|