From fcbeb2858f8f94898dd2ac305bae1a7fde3daf29 Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Sun, 19 May 2013 09:47:45 -0700 Subject: [PATCH] REPORT_SUPPORTED_OPCODES, serviceaction is a 16 bit integer at offset 4, not a 32 bit integer --- lib/scsi-lowlevel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/scsi-lowlevel.c b/lib/scsi-lowlevel.c index c86968b..51a451f 100644 --- a/lib/scsi-lowlevel.c +++ b/lib/scsi-lowlevel.c @@ -976,7 +976,7 @@ scsi_cdb_report_supported_opcodes(int rctd, int options, enum scsi_opcode opcode task->cdb[3] = opcode; - scsi_set_uint32(&task->cdb[4], sa); + scsi_set_uint16(&task->cdb[4], sa); scsi_set_uint32(&task->cdb[6], alloc_len);