]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
auxdisplay: hd44780: Fix an API misuse in hd44780.c
authorHaoxiang Li <haoxiang_li2024@163.com>
Mon, 24 Feb 2025 10:15:27 +0000 (18:15 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 May 2025 05:46:49 +0000 (07:46 +0200)
commit0882b47507b0ef19d70131f7cdc6acef97a1150c
treeb5d4ff0b9116bf26b062cc23dbf8b7d5c83e6494
parent4b9c5e6e8926f6beabff572a1a178f74a3e566d0
auxdisplay: hd44780: Fix an API misuse in hd44780.c

[ Upstream commit 9b98a7d2e5f4e2beeff88f6571da0cdc5883c7fb ]

Variable allocated by charlcd_alloc() should be released
by charlcd_free(). The following patch changed kfree() to
charlcd_free() to fix an API misuse.

Fixes: 718e05ed92ec ("auxdisplay: Introduce hd44780_common.[ch]")
Cc: stable@vger.kernel.org
Signed-off-by: Haoxiang Li <haoxiang_li2024@163.com>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/auxdisplay/hd44780.c