From: Tejun Heo Date: Tue, 18 Mar 2008 08:56:12 +0000 (+0900) Subject: pata_it821x: use raw nbytes in check_atapi_dma X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b63b133165b876838e8685350ef469620f4abd99;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git pata_it821x: use raw nbytes in check_atapi_dma pata_it821x needs to look at raw request size in check_atapi_dma(). Signed-off-by: Tejun Heo Cc: Alan Cox Signed-off-by: Jeff Garzik --- diff --git a/drivers/ata/pata_it821x.c b/drivers/ata/pata_it821x.c index 109ddd42c266..257951d03dbb 100644 --- a/drivers/ata/pata_it821x.c +++ b/drivers/ata/pata_it821x.c @@ -564,7 +564,7 @@ static int it821x_check_atapi_dma(struct ata_queued_cmd *qc) struct it821x_dev *itdev = ap->private_data; /* Only use dma for transfers to/from the media. */ - if (qc->nbytes < 2048) + if (ata_qc_raw_nbytes(qc) < 2048) return -EOPNOTSUPP; /* No ATAPI DMA in smart mode */