Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 204280
b: refs/heads/master
c: 17cf2c5
h: refs/heads/master
v: v3
  • Loading branch information
Madhuranath Iyengar authored and James Bottomley committed Jul 28, 2010
1 parent 5d56023 commit 535d76e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c01be6dcb2b5cce4feaf48035be6395e5cd7d47c
refs/heads/master: 17cf2c5d76b468ca03e59c7cf60decfcef6c08c4
7 changes: 7 additions & 0 deletions trunk/drivers/scsi/qla2xxx/qla_bsg.c
Original file line number Diff line number Diff line change
Expand Up @@ -1222,6 +1222,13 @@ qla24xx_iidma(struct fc_bsg_job *bsg_job)
return -EINVAL;
}

if (fcport->loop_id == FC_NO_LOOP_ID) {
DEBUG2(printk(KERN_ERR "%s(%ld): Invalid port loop id, "
"loop_id = 0x%x\n",
__func__, vha->host_no, fcport->loop_id));
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 535d76e

Please sign in to comment.