Skip to content

Commit e0029dc

Browse files
hreineckehtejun
authored andcommitted
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: 11093cb ("libata-scsi: generate correct ATA pass-through sense") Cc: stable@vger.kernel.org # v4.7+ Signed-off-by: Tejun Heo <tj@kernel.org>
1 parent 18eddae commit e0029dc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/ata/libata-scsi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1088,7 +1088,7 @@ static void ata_gen_passthru_sense(struct ata_queued_cmd *qc)
10881088
desc[1] = tf->command; /* status */
10891089
desc[2] = tf->device;
10901090
desc[3] = tf->nsect;
1091-
desc[0] = 0;
1091+
desc[7] = 0;
10921092
if (tf->flags & ATA_TFLAG_LBA48) {
10931093
desc[8] |= 0x80;
10941094
if (tf->hob_nsect)

0 commit comments

Comments
 (0)