summaryrefslogtreecommitdiff
path: root/tools/lib/argv_split.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2019-11-21 16:02:07 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-12-10 15:55:55 +0100
commit4bcd9eae731083bb724faf68cce6021213308333 (patch)
treee4b01ab7fa70d6f837cba5c25f2a2cd6cae49c39 /tools/lib/argv_split.c
parentc724f776f048538ecfdf53a52b7a522309f5c504 (diff)
fbtft: Fix the initialization from property algorithm
When converting to device property API the commit 8b2d3aeeb7ec ("fbtft: Make use of device property API") mistakenly placed the reading of the first value inside the loop, that jumps over value after initialization sequence or sleep commands. Move the above mentioned reading outside of the loop to restore correct behaviour. Besides that, we are using pre-increment operation which may lead to out of the boundary access at the end of sequence. Thus, allocate buffer with an additional element at the end to prevent out of the boundary access. Fixes: 8b2d3aeeb7ec ("fbtft: Make use of device property API") Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20191121140207.65089-1-andriy.shevchenko@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/lib/argv_split.c')
0 files changed, 0 insertions, 0 deletions