summaryrefslogtreecommitdiff
path: root/drivers/ide
diff options
context:
space:
mode:
authorJens Axboe <axboe@suse.de>2006-07-28 10:58:26 +0400
committerJens Axboe <axboe@suse.de>2006-07-28 10:58:26 +0400
commit0a8348d08677ad77ee353f96eb8745c693a05a13 (patch)
tree15f087cf114f487b70aa668236a0a3a094d1e30f /drivers/ide
parent361934849e9c0418950bedf667732f36337d88b9 (diff)
downloadlinux-0a8348d08677ad77ee353f96eb8745c693a05a13.tar.xz
[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>
Diffstat (limited to 'drivers/ide')
-rw-r--r--drivers/ide/ide-dma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ide/ide-dma.c b/drivers/ide/ide-dma.c
index 98918fb6b2ce..7c3a13e1cf64 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: