Commit b14359c4 authored by Andrew Morton's avatar Andrew Morton Committed by Anton Blanchard

[PATCH] IDE fix for -ac merge

do_ide_setup_pci_device() is returning an uninitialised
ata_index_t causing an oops at bootup.
parent de5b180b
...@@ -693,7 +693,7 @@ static ata_index_t do_ide_setup_pci_device (struct pci_dev *dev, ide_pci_device_ ...@@ -693,7 +693,7 @@ static ata_index_t do_ide_setup_pci_device (struct pci_dev *dev, ide_pci_device_
int autodma = 0; int autodma = 0;
int pciirq = 0; int pciirq = 0;
int tried_config = 0; int tried_config = 0;
ata_index_t index; ata_index_t index = { .b = { .low = 0xff, .high = 0xff } };
if((autodma = ide_setup_pci_controller(dev, d, noisy, &tried_config)) < 0) if((autodma = ide_setup_pci_controller(dev, d, noisy, &tried_config)) < 0)
return index; return index;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment