Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 72314
b: refs/heads/master
c: 0fec02c
h: refs/heads/master
v: v3
  • Loading branch information
HighPoint Linux Team authored and James Bottomley committed Oct 18, 2007
1 parent b29c814 commit e1026c7
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 7a39ac3f25bef018862a991d754aff681c019127
refs/heads/master: 0fec02c93f60fb44ba3a24a0d3e4a52521d34d3f
5 changes: 3 additions & 2 deletions trunk/drivers/scsi/hptiop.c
Original file line number Diff line number Diff line change
Expand Up @@ -375,8 +375,9 @@ static void hptiop_host_request_callback(struct hptiop_hba *hba, u32 _tag)
scp->result = SAM_STAT_CHECK_CONDITION;
memset(&scp->sense_buffer,
0, sizeof(scp->sense_buffer));
memcpy(&scp->sense_buffer,
&req->sg_list, le32_to_cpu(req->dataxfer_length));
memcpy(&scp->sense_buffer, &req->sg_list,
min(sizeof(scp->sense_buffer),
le32_to_cpu(req->dataxfer_length)));
break;

default:
Expand Down

0 comments on commit e1026c7

Please sign in to comment.