提交 0a8348d0 编写于 作者: J Jens Axboe

[PATCH] ide: if the id fields looks screwy, disable DMA

It's the safer choice. Originally due to a bug in itx821x, but a
generally sound thing to do.
Signed-off-by: NJens Axboe <axboe@suse.de>
上级 36193484
...@@ -750,7 +750,7 @@ void ide_dma_verbose(ide_drive_t *drive) ...@@ -750,7 +750,7 @@ void ide_dma_verbose(ide_drive_t *drive)
goto bug_dma_off; goto bug_dma_off;
printk(", DMA"); printk(", DMA");
} else if (id->field_valid & 1) { } else if (id->field_valid & 1) {
printk(", BUG"); goto bug_dma_off;
} }
return; return;
bug_dma_off: bug_dma_off:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册