Skip to content

Commit

Permalink
[SCSI] qla2xxx: Don't issue set or get port param MBC if remote port …
Browse files Browse the repository at this point in the history
…is not logged in

Signed-off-by: Giridhar Malavali <[email protected]>
Signed-off-by: James Bottomley <[email protected]>
  • Loading branch information
Madhuranath Iyengar authored and James Bottomley committed Jul 28, 2010
1 parent 8867048 commit 9a15eb4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions drivers/scsi/qla2xxx/qla_bsg.c
Original file line number Diff line number Diff line change
Expand Up @@ -1259,6 +1259,13 @@ qla24xx_iidma(struct fc_bsg_job *bsg_job)
return -EINVAL;
}

if (fcport->flags & FCF_LOGIN_NEEDED) {
DEBUG2(printk(KERN_ERR "%s(%ld): Remote port not logged in, "
"flags = 0x%x\n",
__func__, vha->host_no, fcport->flags));
return -EINVAL;
}

if (port_param->mode)
rval = qla2x00_set_idma_speed(vha, fcport->loop_id,
port_param->speed, mb);
Expand Down

0 comments on commit 9a15eb4

Please sign in to comment.