Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 144465
b: refs/heads/master
c: 0d04df9
h: refs/heads/master
i:
  144463: 51d6644
v: v3
  • Loading branch information
Eric Moore authored and James Bottomley committed Apr 27, 2009
1 parent 5cc9b2c commit 1b5bc68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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: 03ea1115506c53b46cec2177deb189d186bb80dd
refs/heads/master: 0d04df9b4a83c50ebe2143f20c2d5469c83ba314
3 changes: 2 additions & 1 deletion trunk/drivers/scsi/mpt2sas/mpt2sas_scsih.c
Original file line number Diff line number Diff line change
Expand Up @@ -2863,8 +2863,9 @@ scsih_io_done(struct MPT2SAS_ADAPTER *ioc, u16 smid, u8 VF_ID, u32 reply)
struct sense_info data;
const void *sense_data = mpt2sas_base_get_sense_buffer(ioc,
smid);
memcpy(scmd->sense_buffer, sense_data,
u32 sz = min_t(u32, SCSI_SENSE_BUFFERSIZE,
le32_to_cpu(mpi_reply->SenseCount));
memcpy(scmd->sense_buffer, sense_data, sz);
_scsih_normalize_sense(scmd->sense_buffer, &data);
/* failure prediction threshold exceeded */
if (data.asc == 0x5D)
Expand Down

0 comments on commit 1b5bc68

Please sign in to comment.