mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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 <[email protected]>
Signed-off-by: Hannes Reinecke <[email protected]>
Fixes: 11093cb1ef ("libata-scsi: generate correct ATA pass-through sense")
Cc: [email protected] # v4.7+
Signed-off-by: Tejun Heo <[email protected]>
This commit is contained in:
parent
18eddaedc9
commit
e0029dcb5b
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue