On Thu, Jun 2, 2022 at 9:31 AM Yuanjun Gong <ruc_gongyuanjun@xxxxxxx> wrote: > A new_map is allocated in at91_dt_node_to_map but it is not > freed in at91_dt_free_map, causing a memory leak. > > Fix it by using kcalloc to allocate new_map and free it in > at91_dt_free_map > > Signed-off-by: Yuanjun Gong <ruc_gongyuanjun@xxxxxxx> So why isn't devres refcounting working in this case? Yours, Linus Walleij