diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2009-09-08 13:16:55 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2009-09-08 13:16:55 +0000 |
| commit | b34421bf9cab5d0ad5822abfaa62febedef2d9a1 (patch) | |
| tree | 861cbfaa866bcf3864607e709a7f079f8e0b8b88 /sys/dev/hptiop | |
| parent | a330ed7cd1527e7ec6ba9dd932510ab5c650e610 (diff) | |
Notes
Diffstat (limited to 'sys/dev/hptiop')
| -rw-r--r-- | sys/dev/hptiop/hptiop.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/hptiop/hptiop.c b/sys/dev/hptiop/hptiop.c index 7218bc504425..5ad2106a314f 100644 --- a/sys/dev/hptiop/hptiop.c +++ b/sys/dev/hptiop/hptiop.c @@ -432,6 +432,7 @@ srb_complete: sg_list), (u_int8_t *)&ccb->csio.sense_data, MIN(dxfer, sizeof(ccb->csio.sense_data))); } else { + /* XXX: Flexelint arg2 is 16 bytes, arg3 is 32 */ memcpy(&ccb->csio.sense_data, &req->sg_list, MIN(dxfer, sizeof(ccb->csio.sense_data))); } @@ -575,6 +576,7 @@ static void hptiop_request_callback_mv(struct hpt_iop_hba * hba, ccb->ccb_h.status = CAM_BUSY; break; case IOP_RESULT_CHECK_CONDITION: + /* XXX: FlexeLint: arg2=16b arg3=32 */ memcpy(&ccb->csio.sense_data, &req->sg_list, MIN(req->dataxfer_length, sizeof(ccb->csio.sense_data))); ccb->ccb_h.status = CAM_SCSI_STATUS_ERROR; |
