Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 252436
b: refs/heads/master
c: 6d78bd5
h: refs/heads/master
v: v3
  • Loading branch information
Prasanna Mumbai authored and James Bottomley committed May 24, 2011
1 parent f48830a commit 2cf1c03
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 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: 68d92ebf598e205619dea753a9a990aef4ab8f7a
refs/heads/master: 6d78bd56be54286a72413db82d87fc371867629f
9 changes: 7 additions & 2 deletions trunk/drivers/scsi/qla4xxx/ql4_isr.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,14 @@ static void qla4xxx_copy_sense(struct scsi_qla_host *ha,

memset(cmd->sense_buffer, 0, SCSI_SENSE_BUFFERSIZE);
sense_len = le16_to_cpu(sts_entry->senseDataByteCnt);
if (sense_len == 0)
if (sense_len == 0) {
DEBUG2(ql4_printk(KERN_INFO, ha, "scsi%ld:%d:%d:%d: %s:"
" sense len 0\n", ha->host_no,
cmd->device->channel, cmd->device->id,
cmd->device->lun, __func__));
ha->status_srb = NULL;
return;

}
/* Save total available sense length,
* not to exceed cmd's sense buffer size */
sense_len = min_t(uint16_t, sense_len, SCSI_SENSE_BUFFERSIZE);
Expand Down

0 comments on commit 2cf1c03

Please sign in to comment.