Skip to content

Commit

Permalink
ide-cd: revert DMA mask test change
Browse files Browse the repository at this point in the history
The change to require the DMA length to be only word-aligned was not
safe.
  • Loading branch information
Linus Torvalds committed May 27, 2005
1 parent d68b862 commit 5d9e4ea
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/ide/ide-cd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 5d9e4ea

Please sign in to comment.