public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Miguel Ojeda Sandonis <miguel.ojeda.sandonis@gmail.com>,
	Willy Tarreau <willy@haproxy.com>,
	linux-kernel@vger.kernel.org
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
	Geert Uytterhoeven <geert@linux-m68k.org>
Subject: [PATCH v2 0/5] auxdisplay: Introduce charlcd_free()
Date: Tue, 12 Mar 2019 16:44:27 +0200	[thread overview]
Message-ID: <20190312144432.7668-1-andriy.shevchenko@linux.intel.com> (raw)

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


             reply	other threads:[~2019-03-12 14:45 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-12 14:44 Andy Shevchenko [this message]
2019-03-12 14:44 ` [PATCH v2 1/5] auxdisplay: hd44780: Fix memory leak on ->remove() Andy Shevchenko
2019-03-12 15:05   ` Geert Uytterhoeven
2019-03-12 14:44 ` [PATCH v2 2/5] auxdisplay: charlcd: Move to_priv() to charlcd namespace Andy Shevchenko
2019-03-12 15:07   ` Geert Uytterhoeven
2019-03-12 15:33     ` Andy Shevchenko
2019-03-12 14:44 ` [PATCH v2 3/5] auxdisplay: charlcd: Introduce charlcd_free() helper Andy Shevchenko
2019-03-12 15:08   ` Geert Uytterhoeven
2019-03-12 14:44 ` [PATCH v2 4/5] auxdisplay: panel: Convert to use charlcd_free() Andy Shevchenko
2019-03-12 15:10   ` Geert Uytterhoeven
2019-03-12 14:44 ` [PATCH v2 5/5] auxdisplay: hd44780: " Andy Shevchenko
2019-03-12 15:11   ` Geert Uytterhoeven
2019-03-12 15:11 ` [PATCH v2 0/5] auxdisplay: Introduce charlcd_free() Miguel Ojeda
2019-03-12 15:46   ` Andy Shevchenko
2019-03-17  7:40     ` Miguel Ojeda

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190312144432.7668-1-andriy.shevchenko@linux.intel.com \
    --to=andriy.shevchenko@linux.intel.com \
    --cc=geert@linux-m68k.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=miguel.ojeda.sandonis@gmail.com \
    --cc=willy@haproxy.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox