diff options
author | Alan Cox <alan@lxorguk.ukuu.org.uk> | 2006-01-17 20:51:55 +0000 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2006-01-17 19:37:45 -0500 |
commit | 9d824d0710a9e780451533ae4c5cdc5c2ff9062e (patch) | |
tree | b786d00ffce075c3f2031d672cccd3814ba01a53 /drivers | |
parent | 8d238e012469a9a332c78d6a69a8a46ac4b1e9c2 (diff) | |
download | kernel_samsung_espresso10-9d824d0710a9e780451533ae4c5cdc5c2ff9062e.zip kernel_samsung_espresso10-9d824d0710a9e780451533ae4c5cdc5c2ff9062e.tar.gz kernel_samsung_espresso10-9d824d0710a9e780451533ae4c5cdc5c2ff9062e.tar.bz2 |
[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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/libata-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c index e604445..0a2936a 100644 --- a/drivers/scsi/libata-core.c +++ b/drivers/scsi/libata-core.c @@ -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) |