Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: Charles Machalow <csm10495@gmail.com>
Signed-off-by: Hannes Reinecke <hare@suse.com>
Fixes: 11093cb1ef56 ("libata-scsi: generate correct ATA pass-through sense")
Cc: stable@vger.kernel.org # v4.7+
Signed-off-by: Tejun Heo <tj@kernel.org>

authored by

Hannes Reinecke and committed by
Tejun Heo
e0029dcb 18eddaed

+1 -1
+1 -1
drivers/ata/libata-scsi.c
··· 1088 1088 desc[1] = tf->command; /* status */ 1089 1089 desc[2] = tf->device; 1090 1090 desc[3] = tf->nsect; 1091 - desc[0] = 0; 1091 + desc[7] = 0; 1092 1092 if (tf->flags & ATA_TFLAG_LBA48) { 1093 1093 desc[8] |= 0x80; 1094 1094 if (tf->hob_nsect)