Re: [PATCH v2] EDAC/altera: Fix SDMMC PortB OF node reference leak

From: Dinh Nguyen

Date: Mon May 04 2026 - 09:23:27 EST




On 5/3/26 16:25, Yuho Choi wrote:
of_find_compatible_node() returns a device node with its refcount
incremented. altr_portb_setup() looks up the SDMMC ECC node but does
not drop that reference on error paths or after successful setup.

Route those exits through an of_node_put() cleanup path. Also free the
EDAC control info if devres_open_group() fails after dci has been
allocated, and release the devres group before freeing dci because
altdev is stored in dci->pvt_info.

Fixes: 911049845d70 ("EDAC, altera: Add Arria10 SD-MMC EDAC support")
Signed-off-by: Yuho Choi <dbgh9129@xxxxxxxxx>
---

I think you need the

Cc: stable@xxxxxxxxxxxxxxx

But other than that:

Acked-by: Dinh Nguyen <dinguyen@xxxxxxxxxx>

Thanks,
Dinh