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-Tag: v2.6.25-rc7~10^2~4 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=b63b133165b876838e8685350ef469620f4abd99;p=linux-2.6-omap-h63xx.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 109ddd42c26..257951d03db 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 */