WSL2-Linux-Kernel/drivers/auxdisplay
Andy Shevchenko b6149efc57 auxdisplay: lcd2s: Use proper API to free the instance of charlcd object
commit 9ed331f8a0 upstream.

While it might work, the current approach is fragile in a few ways:
- whenever members in the structure are shuffled, the pointer will be wrong
- the resource freeing may include more than covered by kfree()

Fix this by using charlcd_free() call instead of kfree().

Fixes: 8c9108d014 ("auxdisplay: add a driver for lcd2s character display")
Cc: Lars Poeschel <poeschel@lemonage.de>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-03-08 19:12:47 +01:00
..
Kconfig
Makefile
arm-charlcd.c
cfag12864b.c auxdisplay: Replace symbolic permissions with octal permissions 2021-07-16 07:42:35 +02:00
cfag12864bfb.c
charlcd.c auxdisplay: charlcd: checking for pointer reference before dereferencing 2022-01-11 15:35:17 +01:00
charlcd.h
hd44780.c
hd44780_common.c
hd44780_common.h
ht16k33.c auxdisplay: ht16k33: Fix frame buffer device blanking 2021-11-18 19:17:02 +01:00
img-ascii-lcd.c auxdisplay: img-ascii-lcd: Fix lock-up when displaying empty string 2021-11-18 19:17:02 +01:00
ks0108.c auxdisplay: Replace symbolic permissions with octal permissions 2021-07-16 07:42:35 +02:00
lcd2s.c auxdisplay: lcd2s: Use proper API to free the instance of charlcd object 2022-03-08 19:12:47 +01:00
panel.c