Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 102067
b: refs/heads/master
c: 0b6abc1
h: refs/heads/master
i:
  102065: 6c861e7
  102063: bb2ecb4
v: v3
  • Loading branch information
FUJITA Tomonori authored and Bartlomiej Zolnierkiewicz committed Jul 16, 2008
1 parent b0bf32f commit e1956a3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 84e0f3f6c1e26588fdcb9f1b0f99d0275229bc99
refs/heads/master: 0b6abc17700a7843b165c677da0ac94522f83083
5 changes: 5 additions & 0 deletions trunk/drivers/ide/ide-cd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1195,6 +1195,7 @@ static ide_startstop_t cdrom_do_block_pc(ide_drive_t *drive, struct request *rq)
int mask = drive->queue->dma_alignment;
unsigned long addr =
(unsigned long)page_address(bio_page(rq->bio));
unsigned long stack_mask = ~(THREAD_SIZE - 1);

info->dma = drive->using_dma;

Expand All @@ -1206,6 +1207,10 @@ static ide_startstop_t cdrom_do_block_pc(ide_drive_t *drive, struct request *rq)
*/
if ((rq->data_len & 15) || (addr & mask))
info->dma = 0;

if (!((addr & stack_mask) ^
((unsigned long)current->stack & stack_mask)))
info->dma = 0;
}

/* start sending the command to the drive */
Expand Down

0 comments on commit e1956a3

Please sign in to comment.