From: Bartlomiej Zolnierkiewicz Date: Fri, 19 Oct 2007 22:32:37 +0000 (+0200) Subject: ide: check drive->using_dma in flagged_taskfile() X-Git-Tag: v2.6.24-rc1~128^2~3 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eda5b359dc8372424eed94f5a3e27c2deb4e76cf;p=linux-2.6 ide: check drive->using_dma in flagged_taskfile() Acked-by: Sergei Shtylyov Signed-off-by: Bartlomiej Zolnierkiewicz --- diff --git a/drivers/ide/ide-taskfile.c b/drivers/ide/ide-taskfile.c index 6812f47887..73ef6bf5fb 100644 --- a/drivers/ide/ide-taskfile.c +++ b/drivers/ide/ide-taskfile.c @@ -837,6 +837,9 @@ ide_startstop_t flagged_taskfile (ide_drive_t *drive, ide_task_t *task) case TASKFILE_OUT_DMA: case TASKFILE_IN_DMAQ: case TASKFILE_IN_DMA: + if (!drive->using_dma) + break; + if (!hwif->dma_setup(drive)) { hwif->dma_exec_cmd(drive, taskfile->command); hwif->dma_start(drive);