Merge branch 'for-2.6.40/core' of git://git.kernel.dk/linux-2.6-block
[linux-2.6.git] / drivers / ata / libata-scsi.c
index dad2c95..d51f979 100644 (file)
@@ -2139,7 +2139,7 @@ static unsigned int ata_scsiop_inq_b0(struct ata_scsi_args *args, u8 *rbuf)
         * with the unmap bit set.
         */
        if (ata_id_has_trim(args->id)) {
-               put_unaligned_be32(65535 * 512 / 8, &rbuf[20]);
+               put_unaligned_be64(65535 * 512 / 8, &rbuf[36]);
                put_unaligned_be32(1, &rbuf[28]);
        }