浏览代码

[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>
Jens Axboe 19 年之前
父节点
当前提交
0a8348d086
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/ide/ide-dma.c

+ 1 - 1
drivers/ide/ide-dma.c

@@ -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: