Commit 5d9e4ea5 authored by Linus Torvalds's avatar Linus Torvalds

ide-cd: revert DMA mask test change

The change to require the DMA length to be only word-aligned was not
safe.
parent d68b8622
...@@ -1932,8 +1932,11 @@ static ide_startstop_t cdrom_do_block_pc(ide_drive_t *drive, struct request *rq) ...@@ -1932,8 +1932,11 @@ static ide_startstop_t cdrom_do_block_pc(ide_drive_t *drive, struct request *rq)
/* /*
* check if dma is safe * 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; info->dma = 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment