summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJens Axboe <axboe@suse.de>2006-07-28 08:58:26 +0200
committerJens Axboe <axboe@suse.de>2006-07-28 08:58:26 +0200
commit0a8348d08677ad77ee353f96eb8745c693a05a13 (patch)
tree15f087cf114f487b70aa668236a0a3a094d1e30f /drivers
parent361934849e9c0418950bedf667732f36337d88b9 (diff)
downloadop-kernel-dev-0a8348d08677ad77ee353f96eb8745c693a05a13.zip
op-kernel-dev-0a8348d08677ad77ee353f96eb8745c693a05a13.tar.gz
[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')
-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 98918fb..7c3a13e 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:
OpenPOWER on IntegriCloud