ide: check ->dma_setup() return value in flagged_taskfile()
PATCH 1/12 ide: check ->dma_setup() return value in flagged_taskfile()
Signed-off-by Bartlomiej Zolnierkiewicz <[email protected]>
--- drivers/ide/ide-taskfile.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-)
drivers/ide/ide-taskfile.c +7 -4
@@ -827,9 +827,11 @@ ide_startstop_t flagged_taskfile (ide_drcase TASKFILE_OUT_DMA :case TASKFILE_IN_DMAQ :case TASKFILE_IN_DMA : - hwif->dma_setup (drive); - hwif->dma_exec_cmd (drive, taskfile->command); - hwif->dma_start (drive); +if (!hwif->dma_setup (drive)) { + hwif->dma_exec_cmd (drive, taskfile->command); + hwif->dma_start (drive); +return ide_started; + }break ;default :
@@ -843,7 +845,8 @@ ide_startstop_t flagged_taskfile (ide_drreturn task->prehandler (drive, task->rq); }ide_execute_command (drive, taskfile->command, task->handler,WAIT_WORSTCASE ,NULL ); +return ide_started; } -return ide_started; +return ide_stopped; }
Hello.
Quoted 1 line · Bartlomiej Zolnierkiewicz
Signed-off-by Bartlomiej Zolnierkiewicz <[email protected]>
Acked-by Sergei Shtylyov <[email protected]>
MBR, Sergei