mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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 <[email protected]> Cc: Alan Cox <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
This commit is contained in:
parent
aacda37538
commit
b63b133165
1 changed files with 1 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue