Re: [PATCH v1 2/3] auxdisplay: lcd2s: Fix memory leak in ->remove()
From: Miguel Ojeda
Date: Wed Mar 02 2022 - 20:19:39 EST
On Wed, Feb 23, 2022 at 4:47 PM Andy Shevchenko
<andriy.shevchenko@xxxxxxxxxxxxxxx> wrote:
>
> Once allocated the struct lcd2s_data is never freed.
> Fix the memory leak by switching to devm_kzalloc().
>
> Fixes: 8c9108d014c5 ("auxdisplay: add a driver for lcd2s character display")
> Cc: Lars Poeschel <poeschel@xxxxxxxxxxx>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
Thanks Andy, queued.
Cheers,
Miguel