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 <ge...@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

Reply via email to