Signed-off-by: Ronnie Sahlberg <ronniesahlberg@xxxxxxxxx> --- usr/spc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/usr/spc.c b/usr/spc.c index aeb022a..641366f 100644 --- a/usr/spc.c +++ b/usr/spc.c @@ -777,7 +777,7 @@ static int report_opcodes_all(struct scsi_cmd *cmd, int rctd, } avail_len = data - &buf[0]; - put_unaligned_be32(avail_len-4, data); + put_unaligned_be32(avail_len-4, &buf[0]); actual_len = spc_memcpy(scsi_get_in_buffer(cmd), &alloc_len, buf, avail_len); -- 1.7.3.1 -- To unsubscribe from this list: send the line "unsubscribe stgt" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html