staging: fbtft: fix out of bound access
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Thu, 4 Jun 2015 13:34:52 +0000 (19:04 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Jun 2015 20:22:45 +0000 (13:22 -0700)
commite6ffd1ba55a4931c429448cc69db5e7152921c85
treecfa28dd42809075a2c2e85f7efda698058d3f316
parentb38c760ab0e1d7e051f13e31771514b5809de222
staging: fbtft: fix out of bound access

str was 16 bytes but was mentioned as 128 in snprintf.
again msg is 128 bytes but not sufficient to hold the complete debug
message of register values.
Now removed the use of str, msg and print the register values from the
loop.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fbtft/fbtft-core.c