diff options
author | 2022-02-23 17:47:16 +0200 | |
---|---|---|
committer | 2022-03-03 00:29:26 +0100 | |
commit | 4424c35ead667ba2e8de7ab8206da66453e6f728 (patch) | |
tree | 41f63a799f36ad5d2b62dda71626bed16207bc13 /lib/test_overflow.c | |
parent | Linux 5.17-rc6 (diff) | |
download | wireguard-linux-4424c35ead667ba2e8de7ab8206da66453e6f728.tar.xz wireguard-linux-4424c35ead667ba2e8de7ab8206da66453e6f728.zip |
auxdisplay: lcd2s: Fix lcd2s_redefine_char() feature
It seems that the lcd2s_redefine_char() has never been properly
tested. The buffer is filled by DEF_CUSTOM_CHAR command followed
by the character number (from 0 to 7), but immediately after that
these bytes are rewritten by the decoded hex stream.
Fix the index to fill the buffer after the command and number.
Fixes: 8c9108d014c5 ("auxdisplay: add a driver for lcd2s character display")
Cc: Lars Poeschel <poeschel@lemonage.de>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
[fixed typo in commit message]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions