mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 05:02:12 +00:00
[SCSI] qla2xxx: Don't issue set or get port param MBC if remote port is not logged in
Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
This commit is contained in:
parent
8867048b48
commit
9a15eb4b51
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user