Commit 0a8348d0 authored by Jens Axboe's avatar 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: default avatarJens Axboe <axboe@suse.de>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment