]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] IDE fix for -ac merge
authorAndrew Morton <akpm@digeo.com>
Mon, 25 Nov 2002 13:35:18 +0000 (05:35 -0800)
committerAnton Blanchard <anton@samba.org>
Mon, 25 Nov 2002 13:35:18 +0000 (05:35 -0800)
do_ide_setup_pci_device() is returning an uninitialised
ata_index_t causing an oops at bootup.

drivers/ide/setup-pci.c

index 90a92dbe79d2079a616a76a7aae653b26eaac060..e5e6a6fce13a91ab0fe61b9315dc9a17d9b06b0e 100644 (file)
@@ -693,7 +693,7 @@ static ata_index_t do_ide_setup_pci_device (struct pci_dev *dev, ide_pci_device_
        int autodma = 0;
        int pciirq = 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)
                return index;