Re: [PATCH 2/3] EDAC: ti: add support for TI keystone and DRA7xx EDAC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 09/11/17 13:50, Jan Lübbe wrote:
On Tue, 2017-11-07 at 22:38 +0200, Tero Kristo wrote:
+       if (edac_mc_add_mc(mci)) {
+               pr_err("%s: Failed to register mci.\n", __func__);
+               return -ENOMEM;
This leaks the allocated mci structure in the error case.

+       }
+
+       /* add EMIF ECC error handler */
+       error_irq = platform_get_irq(pdev, 0);
+       if (!error_irq) {
+               dev_err(dev, "DDR3 EDAC irq number not defined\n");
+               return ret;
This leaves the mc registered in the error case.

I am too much used to devm_alloc nowadays I guess... I'll fix these for v2 and maybe re-arrange the irq alloc with rest of the code.

-Tero
--
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux