Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 309627
b: refs/heads/master
c: a6eb3c9
h: refs/heads/master
i:
  309625: a2ae402
  309623: 268175d
v: v3
  • Loading branch information
Chetan Loke authored and James Bottomley committed May 22, 2012
1 parent bc71d11 commit c17c26b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9e336520c5f673d911642035a5d84fa331ff127f
refs/heads/master: a6eb3c9f73deaa318f17a19c7ad012b3ebe750c3
19 changes: 9 additions & 10 deletions trunk/drivers/scsi/qla2xxx/qla_iocb.c
Original file line number Diff line number Diff line change
Expand Up @@ -385,9 +385,10 @@ qla2x00_start_scsi(srb_t *sp)
else
req->cnt = req->length -
(req->ring_index - cnt);
/* If still no head room then bail out */
if (req->cnt < (req_cnt + 2))
goto queuing_error;
}
if (req->cnt < (req_cnt + 2))
goto queuing_error;

/* Build command packet */
req->current_outstanding_cmd = handle;
Expand Down Expand Up @@ -1502,9 +1503,9 @@ qla24xx_start_scsi(srb_t *sp)
else
req->cnt = req->length -
(req->ring_index - cnt);
if (req->cnt < (req_cnt + 2))
goto queuing_error;
}
if (req->cnt < (req_cnt + 2))
goto queuing_error;

/* Build command packet. */
req->current_outstanding_cmd = handle;
Expand Down Expand Up @@ -1717,11 +1718,10 @@ qla24xx_dif_start_scsi(srb_t *sp)
else
req->cnt = req->length -
(req->ring_index - cnt);
if (req->cnt < (req_cnt + 2))
goto queuing_error;
}

if (req->cnt < (req_cnt + 2))
goto queuing_error;

status |= QDSS_GOT_Q_SPACE;

/* Build header part of command packet (excluding the OPCODE). */
Expand Down Expand Up @@ -2343,11 +2343,10 @@ qla82xx_start_scsi(srb_t *sp)
else
req->cnt = req->length -
(req->ring_index - cnt);
if (req->cnt < (req_cnt + 2))
goto queuing_error;
}

if (req->cnt < (req_cnt + 2))
goto queuing_error;

ctx = sp->u.scmd.ctx =
mempool_alloc(ha->ctx_mempool, GFP_ATOMIC);
if (!ctx) {
Expand Down

0 comments on commit c17c26b

Please sign in to comment.