提交 9d824d07 编写于 作者: A Alan Cox 提交者: Jeff Garzik

[PATCH] libata: Fix sector lock to apply to both drives not drive 0 twice

Signed-off-by: NAlan Cox <alan@redhat.com>
Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
上级 8d238e01
...@@ -1456,7 +1456,7 @@ void ata_dev_config(struct ata_port *ap, unsigned int i) ...@@ -1456,7 +1456,7 @@ void ata_dev_config(struct ata_port *ap, unsigned int i)
ap->udma_mask &= ATA_UDMA5; ap->udma_mask &= ATA_UDMA5;
ap->host->max_sectors = ATA_MAX_SECTORS; ap->host->max_sectors = ATA_MAX_SECTORS;
ap->host->hostt->max_sectors = ATA_MAX_SECTORS; ap->host->hostt->max_sectors = ATA_MAX_SECTORS;
ap->device->flags |= ATA_DFLAG_LOCK_SECTORS; ap->device[i].flags |= ATA_DFLAG_LOCK_SECTORS;
} }
if (ap->ops->dev_config) if (ap->ops->dev_config)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册