mirror of
https://github.com/adulau/aha.git
synced 2024-12-30 12:46:17 +00:00
[PATCH] libata: Fix sector lock to apply to both drives not drive 0 twice
Signed-off-by: Alan Cox <alan@redhat.com> Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
This commit is contained in:
parent
8d238e0124
commit
9d824d0710
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue