Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wirel...
[firefly-linux-kernel-4.4.55.git] / drivers / ata / libata-scsi.c
index e2f57e9e12f0eecb0fd8bbd2603ef14122ff003e..30ea95f43e7910cf8f4cdc1742d4213e53240fb5 100644 (file)
@@ -2138,7 +2138,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]);
        }