![]() commit 9ed331f8a0fb674f4f06edf05a1687bf755af27b 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:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
arm-charlcd.c | ||
cfag12864b.c | ||
cfag12864bfb.c | ||
charlcd.c | ||
charlcd.h | ||
hd44780.c | ||
hd44780_common.c | ||
hd44780_common.h | ||
ht16k33.c | ||
img-ascii-lcd.c | ||
ks0108.c | ||
lcd2s.c | ||
panel.c |