diff options
Diffstat (limited to 'drivers/ata')
-rw-r--r-- | drivers/ata/libata-scsi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c index e2f57e9e12f0..30ea95f43e79 100644 --- a/drivers/ata/libata-scsi.c +++ b/drivers/ata/libata-scsi.c | |||
@@ -2138,7 +2138,7 @@ static unsigned int ata_scsiop_inq_b0(struct ata_scsi_args *args, u8 *rbuf) | |||
2138 | * with the unmap bit set. | 2138 | * with the unmap bit set. |
2139 | */ | 2139 | */ |
2140 | if (ata_id_has_trim(args->id)) { | 2140 | if (ata_id_has_trim(args->id)) { |
2141 | put_unaligned_be32(65535 * 512 / 8, &rbuf[20]); | 2141 | put_unaligned_be64(65535 * 512 / 8, &rbuf[36]); |
2142 | put_unaligned_be32(1, &rbuf[28]); | 2142 | put_unaligned_be32(1, &rbuf[28]); |
2143 | } | 2143 | } |
2144 | 2144 | ||