lkml.org 
[lkml]   [2019]   [Mar]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH v2 0/5] auxdisplay: Introduce charlcd_free()
Date
I have found a memory leak in hd44780 and it becomes that we have no
counterpart to charlcd_alloc() that developers can easily miss.

So, this series fixes a leak and introduces the charlcd_free().

In v2:
- add new patch to convert to_priv() to charlcd_to_priv()
- address Geert's comment what should be freed

Cc: Geert Uytterhoeven <geert@linux-m68k.org>

Andy Shevchenko (5):
auxdisplay: hd44780: Fix memory leak on ->remove()
auxdisplay: charlcd: Move to_priv() to charlcd namespace
auxdisplay: charlcd: Introduce charlcd_free() helper
auxdisplay: panel: Convert to use charlcd_free()
auxdisplay: hd44780: Convert to use charlcd_free()

drivers/auxdisplay/charlcd.c | 32 +++++++++++++++++++-------------
drivers/auxdisplay/hd44780.c | 4 +++-
drivers/auxdisplay/panel.c | 4 ++--
include/misc/charlcd.h | 1 +
4 files changed, 25 insertions(+), 16 deletions(-)

--
2.20.1

\
 
 \ /
  Last update: 2019-03-12 15:45    [W:1.693 / U:0.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site