1
0
Fork 0

ide-cd: revert DMA mask test change

The change to require the DMA length to be only word-aligned was not
safe.
hifive-unleashed-5.1
Linus Torvalds 2005-05-27 07:36:17 -07:00
parent d68b8622cc
commit 5d9e4ea55a
1 changed files with 4 additions and 1 deletions

View File

@ -1932,8 +1932,11 @@ static ide_startstop_t cdrom_do_block_pc(ide_drive_t *drive, struct request *rq)
/*
* check if dma is safe
*
* NOTE! The "len" and "addr" checks should possibly have
* separate masks.
*/
if ((rq->data_len & 3) || (addr & mask))
if ((rq->data_len & mask) || (addr & mask))
info->dma = 0;
}