Skip to content

Commit

Permalink
isci: fix smp response frame overrun
Browse files Browse the repository at this point in the history
Due to a typo we currently copy way too much when copying over the
response data, but since a request is likely backed by a full page
allocation we don't corrupt live data.

Signed-off-by: Dan Williams <[email protected]>
  • Loading branch information
djbw committed Jul 3, 2011
1 parent ff60639 commit 5edc334
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/isci/request.c
Original file line number Diff line number Diff line change
Expand Up @@ -1694,7 +1694,7 @@ scic_sds_io_request_frame_handler(struct scic_sds_request *sci_req,
frame_index,
&smp_resp);

word_cnt = (sizeof(struct smp_req) - SMP_RESP_HDR_SZ) /
word_cnt = (sizeof(struct smp_resp) - SMP_RESP_HDR_SZ) /
sizeof(u32);

sci_swab32_cpy(((u8 *) rsp_hdr) + SMP_RESP_HDR_SZ,
Expand Down

0 comments on commit 5edc334

Please sign in to comment.