]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
auxdisplay: hd44780: Fix memory leak on ->remove()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 12 Mar 2019 14:44:28 +0000 (16:44 +0200)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commit4401ec65d9a8b53e641b4ca61a103d93711cb23f
tree7a62c7719ac84db4488bdac68c23cc485fa4af1c
parente9d72f08a379af94430a38b58abe9f9597800d8e
auxdisplay: hd44780: Fix memory leak on ->remove()

BugLink: https://bugs.launchpad.net/bugs/1838349
[ Upstream commit 41c8d0adf3c4df1867d98cee4a2c4531352a33ad ]

We have to free on ->remove() the allocated resources on ->probe().

Fixes: d47d88361fee ("auxdisplay: Add HD44780 Character LCD support")
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/auxdisplay/hd44780.c