]> Git Repo - linux.git/commitdiff
drivers/ata/pata_ixp4xx_cf.c: ioremap return code check
authorScott Thompson <[email protected]>
Tue, 2 Oct 2007 20:53:01 +0000 (13:53 -0700)
committerJeff Garzik <[email protected]>
Wed, 3 Oct 2007 18:43:28 +0000 (14:43 -0400)
Add missing ioremap return checks.

Signed-off-by: Scott Thompson <postfail <at> hushmail.com>
Acked-by: Tejun Heo <[email protected]>
Cc: Alan Cox <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Jeff Garzik <[email protected]>
drivers/ata/pata_ixp4xx_cf.c

index 4ca7fd6118d50f6d52a1b7c464d1266614282b2d..5dea3584c6c2fc439846b190b2d3627bf22a6156 100644 (file)
@@ -189,6 +189,9 @@ static __devinit int ixp4xx_pata_probe(struct platform_device *pdev)
        data->cs0 = devm_ioremap(&pdev->dev, cs0->start, 0x1000);
        data->cs1 = devm_ioremap(&pdev->dev, cs1->start, 0x1000);
 
+       if (!data->cs0 || !data->cs1)
+               return -ENOMEM;
+
        irq = platform_get_irq(pdev, 0);
        if (irq)
                set_irq_type(irq, IRQT_RISING);
This page took 0.05482 seconds and 4 git commands to generate.