diff options
-rw-r--r-- | drivers/scsi/scsi_debug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/scsi_debug.c b/drivers/scsi/scsi_debug.c index 6888b2ca5bfc..d2fd0efca565 100644 --- a/drivers/scsi/scsi_debug.c +++ b/drivers/scsi/scsi_debug.c | |||
@@ -2220,7 +2220,7 @@ static int resp_get_lba_status(struct scsi_cmnd * scmd, | |||
2220 | mapped = map_state(lba, &num); | 2220 | mapped = map_state(lba, &num); |
2221 | 2221 | ||
2222 | memset(arr, 0, SDEBUG_GET_LBA_STATUS_LEN); | 2222 | memset(arr, 0, SDEBUG_GET_LBA_STATUS_LEN); |
2223 | put_unaligned_be32(16, &arr[0]); /* Parameter Data Length */ | 2223 | put_unaligned_be32(20, &arr[0]); /* Parameter Data Length */ |
2224 | put_unaligned_be64(lba, &arr[8]); /* LBA */ | 2224 | put_unaligned_be64(lba, &arr[8]); /* LBA */ |
2225 | put_unaligned_be32(num, &arr[16]); /* Number of blocks */ | 2225 | put_unaligned_be32(num, &arr[16]); /* Number of blocks */ |
2226 | arr[20] = !mapped; /* mapped = 0, unmapped = 1 */ | 2226 | arr[20] = !mapped; /* mapped = 0, unmapped = 1 */ |