Re: [PATCH 1/1] pinctrl/ar91: fix a memleak in at91_dt_node_to_map

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

 



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



[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux