Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e0029dcb authored by Hannes Reinecke's avatar Hannes Reinecke Committed by Tejun Heo
Browse files

libata-scsi: Fixup ata_gen_passthru_sense()



There's a typo in ata_gen_passthru_sense(), where the first byte
would be overwritten incorrectly later on.

Reported-by: default avatarCharles Machalow <csm10495@gmail.com>
Signed-off-by: default avatarHannes Reinecke <hare@suse.com>
Fixes: 11093cb1 ("libata-scsi: generate correct ATA pass-through sense")
Cc: stable@vger.kernel.org # v4.7+
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent 18eddaed
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1088,7 +1088,7 @@ static void ata_gen_passthru_sense(struct ata_queued_cmd *qc)
		desc[1] = tf->command; /* status */
		desc[2] = tf->device;
		desc[3] = tf->nsect;
		desc[0] = 0;
		desc[7] = 0;
		if (tf->flags & ATA_TFLAG_LBA48)  {
			desc[8] |= 0x80;
			if (tf->hob_nsect)