projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3cf30a
)
[PATCH] ata_piix: fix host_set private_data intialization
author
Tejun Heo
<htejun@gmail.com>
Fri, 4 Aug 2006 18:59:13 +0000
(
03:59
+0900)
committer
Tejun Heo
<htejun@gmail.com>
Fri, 4 Aug 2006 18:59:13 +0000
(
03:59
+0900)
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 <htejun@gmail.com>
drivers/scsi/ata_piix.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/scsi/ata_piix.c
b/drivers/scsi/ata_piix.c
index 19745a31072b17e2be64a3e432fe0940effb004a..298e4643b9697e31d6e0ab034abee22fe51c79da 100644
(file)
--- 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;