| Submitter | Andrew Morton |
|---|---|
| Date | Aug. 6, 2009, 11:05 p.m. |
| Message ID | <200908062305.n76N59jW004244@imap1.linux-foundation.org> |
| Download | mbox | patch |
| Permalink | /patch/30897/ |
| State | Not Applicable |
| Delegated to: | David Miller |
| Headers | show |
Comments
Patch
diff -puN drivers/ata/pata_at91.c~drivers-ata-introduce-missing-kfree drivers/ata/pata_at91.c --- a/drivers/ata/pata_at91.c~drivers-ata-introduce-missing-kfree +++ a/drivers/ata/pata_at91.c @@ -261,7 +261,8 @@ static int __devinit pata_at91_probe(str if (IS_ERR(info->mck)) { dev_err(dev, "failed to get access to mck clock\n"); - return -ENODEV; + ret = -ENODEV; + goto err_clk_get; } info->cs = board->chipselect; @@ -308,6 +309,7 @@ err_alt_ioremap: err_ide_ioremap: clk_put(info->mck); +err_clk_get: kfree(info); return ret;