summaryrefslogtreecommitdiffstats
path: root/drivers/ata
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2008-03-18 17:56:12 +0900
committerJeff Garzik <jeff@garzik.org>2008-03-24 22:09:24 -0400
commitb63b133165b876838e8685350ef469620f4abd99 (patch)
tree206b9bfbe4a6a5bfe0a337844b57f21f93c75d14 /drivers/ata
parentaacda37538e7f9cf2148eedf3766239829e51ba4 (diff)
downloadblackbird-op-linux-b63b133165b876838e8685350ef469620f4abd99.tar.gz
blackbird-op-linux-b63b133165b876838e8685350ef469620f4abd99.zip
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 <htejun@gmail.com> Cc: Alan Cox <alan@lxorguk.ukuu.org.uk> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/ata')
-rw-r--r--drivers/ata/pata_it821x.c2
1 files changed, 1 insertions, 1 deletions
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 */
OpenPOWER on IntegriCloud