Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 210609
b: refs/heads/master
c: 1bd58b8
h: refs/heads/master
i:
  210607: f08b826
v: v3
  • Loading branch information
Giridhar Malavali authored and James Bottomley committed Sep 5, 2010
1 parent 977c0b9 commit 353cd4d
Show file tree
Hide file tree
Showing 2 changed files with 14 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: 0374f55ed882a46cd4825dde16ca2392d4c367f6
refs/heads/master: 1bd58b89e84b15283aaa3148fee4969abe19af8d
13 changes: 13 additions & 0 deletions trunk/drivers/scsi/qla2xxx/qla_nx.c
Original file line number Diff line number Diff line change
Expand Up @@ -2672,6 +2672,19 @@ qla82xx_start_scsi(srb_t *sp)
sufficient_dsds:
req_cnt = 1;

if (req->cnt < (req_cnt + 2)) {
cnt = (uint16_t)RD_REG_DWORD_RELAXED(
&reg->req_q_out[0]);
if (req->ring_index < cnt)
req->cnt = cnt - req->ring_index;
else
req->cnt = req->length -
(req->ring_index - cnt);
}

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

ctx = sp->ctx = mempool_alloc(ha->ctx_mempool, GFP_ATOMIC);
if (!sp->ctx) {
DEBUG(printk(KERN_INFO
Expand Down

0 comments on commit 353cd4d

Please sign in to comment.