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

Commit f2dfc1a1 authored by Tejun Heo's avatar Tejun Heo Committed by Jeff Garzik
Browse files

libata: update atapi_eh_request_sense() such that lbam/lbah contains buffer size



While updating lbam/h for ATAPI commands, atapi_eh_request_sense() was
left out.  Update it.

Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent 3264a8d8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1264,8 +1264,8 @@ static unsigned int atapi_eh_request_sense(struct ata_queued_cmd *qc)
		tf.feature |= ATAPI_PKT_DMA;
	} else {
		tf.protocol = ATA_PROT_ATAPI;
		tf.lbam = (8 * 1024) & 0xff;
		tf.lbah = (8 * 1024) >> 8;
		tf.lbam = SCSI_SENSE_BUFFERSIZE;
		tf.lbah = 0;
	}

	return ata_exec_internal(dev, &tf, cdb, DMA_FROM_DEVICE,