linux-stable/drivers/auxdisplay
Andy Shevchenko 9ed331f8a0 auxdisplay: lcd2s: Use proper API to free the instance of charlcd object
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>
2022-03-03 00:30:31 +01:00
..
arm-charlcd.c auxdisplay: Replace HTTP links with HTTPS ones 2020-08-08 16:10:03 +02:00
cfag12864b.c auxdisplay: Replace symbolic permissions with octal permissions 2021-07-16 07:42:35 +02:00
cfag12864bfb.c auxdisplay: cfag12864bfb: code indent should use tabs where possible 2021-10-22 00:13:16 +02:00
charlcd.c auxdisplay: charlcd: checking for pointer reference before dereferencing 2021-11-24 11:46:52 +01:00
charlcd.h auxdisplay: Change gotoxy calling interface 2020-11-04 11:04:04 +01:00
hd44780.c auxdisplay: hd44780: Fix oops on module unloading 2021-07-16 07:42:27 +02:00
hd44780_common.c auxdisplay: Change gotoxy calling interface 2020-11-04 11:04:04 +01:00
hd44780_common.h auxdisplay: Change gotoxy calling interface 2020-11-04 11:04:04 +01:00
ht16k33.c auxdisplay: ht16k33: remove superfluous header files 2021-10-22 00:07:29 +02:00
img-ascii-lcd.c auxdisplay: Extract character line display core support 2021-10-21 23:36:28 +02:00
Kconfig auxdisplay: ht16k33: Make use of device properties 2021-10-21 23:36:30 +02:00
ks0108.c auxdisplay: ks0108: remove superfluous header files 2021-10-22 00:04:43 +02:00
lcd2s.c auxdisplay: lcd2s: Use proper API to free the instance of charlcd object 2022-03-03 00:30:31 +01:00
line-display.c auxdisplay: linedisp: Add support for changing scroll rate 2021-10-21 23:36:29 +02:00
line-display.h auxdisplay: Extract character line display core support 2021-10-21 23:36:28 +02:00
Makefile auxdisplay: Extract character line display core support 2021-10-21 23:36:28 +02:00
panel.c treewide: remove editor modelines and cruft 2021-05-07 00:26:34 -07:00