diff options
author | Jens Axboe <axboe@suse.de> | 2006-07-28 08:58:26 +0200 |
---|---|---|
committer | Jens Axboe <axboe@suse.de> | 2006-07-28 08:58:26 +0200 |
commit | 0a8348d08677ad77ee353f96eb8745c693a05a13 (patch) | |
tree | 15f087cf114f487b70aa668236a0a3a094d1e30f | |
parent | 361934849e9c0418950bedf667732f36337d88b9 (diff) | |
download | linux-3.10-0a8348d08677ad77ee353f96eb8745c693a05a13.tar.gz linux-3.10-0a8348d08677ad77ee353f96eb8745c693a05a13.tar.bz2 linux-3.10-0a8348d08677ad77ee353f96eb8745c693a05a13.zip |
[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: Jens Axboe <axboe@suse.de>
-rw-r--r-- | drivers/ide/ide-dma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ide/ide-dma.c b/drivers/ide/ide-dma.c index 98918fb6b2c..7c3a13e1cf6 100644 --- a/drivers/ide/ide-dma.c +++ b/drivers/ide/ide-dma.c @@ -750,7 +750,7 @@ void ide_dma_verbose(ide_drive_t *drive) goto bug_dma_off; printk(", DMA"); } else if (id->field_valid & 1) { - printk(", BUG"); + goto bug_dma_off; } return; bug_dma_off: |