From: Tejun Heo Date: Fri, 4 Aug 2006 18:59:13 +0000 (+0900) Subject: [PATCH] ata_piix: fix host_set private_data intialization X-Git-Tag: v2.6.18-rc5~123^2~2^2~3 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f814b75f4ed2ed58cd7bc876a0a9406f984aac6d;p=linux-2.6 [PATCH] ata_piix: fix host_set private_data intialization To get host_set->private_data initialized reliably, all pinfos need to point to the same hpriv. Restore pinfo->private_data after pata pinfo assignment. Signed-off-by: Tejun Heo --- diff --git a/drivers/scsi/ata_piix.c b/drivers/scsi/ata_piix.c index 19745a3107..298e4643b9 100644 --- a/drivers/scsi/ata_piix.c +++ b/drivers/scsi/ata_piix.c @@ -828,6 +828,7 @@ static void __devinit piix_init_sata_map(struct pci_dev *pdev, case IDE: WARN_ON((i & 1) || map[i + 1] != IDE); pinfo[i / 2] = piix_port_info[ich5_pata]; + pinfo[i / 2].private_data = hpriv; i++; printk(" IDE IDE"); break;