drivers/ata/pata_ixp4xx_cf.c: ioremap return code check
PATCH 5/10 drivers/ata/pata_ixp4xx_cf.c: ioremap return code check
From: Scott Thompson <[email protected]>
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]>
---
drivers/ata/pata_ixp4xx_cf.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/ata/pata_ixp4xx_cf.c renamed from drivers/ata/pata_ixp4xx_cf.c~drivers-ata-pata_ixp4xx_cfc-ioremap-return-code-check +3 -0
@@ -195,6 +195,9 @@ static __devinit int ixp4xx_pata_probe(s 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 );
_
Jeff Garzik
AppliedQuoted 8 lines · [email protected] wrote:
From: Scott Thompson <[email protected]>
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]>
applied