Thread (20 messages) 20 messages, 4 authors, 2017-11-27
STALE3148d
Revisions (6)
  1. v1 [diff vs current]
  2. v1 [diff vs current]
  3. v1 [diff vs current]
  4. v1 current
  5. v1 [diff vs current]
  6. v1 [diff vs current]

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

From: jlu@pengutronix.de (Jan Lübbe)
Date: 2017-11-09 11:50:04
Also in: linux-edac, linux-omap

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.

Regards,
Jan
-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help