Skip to content

Commit

Permalink
[PATCH] libata: Fix sector lock to apply to both drives not drive 0 t…
Browse files Browse the repository at this point in the history
…wice

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
  • Loading branch information
Alan Cox authored and Jeff Garzik committed Jan 18, 2006
1 parent 8d238e0 commit 9d824d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/libata-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1456,7 +1456,7 @@ void ata_dev_config(struct ata_port *ap, unsigned int i)
ap->udma_mask &= ATA_UDMA5;
ap->host->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)
Expand Down

0 comments on commit 9d824d0

Please sign in to comment.