]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit105af218f2747cfb46b015322bc25610a75448fc
treecfa28dd42809075a2c2e85f7efda698058d3f316
parent8ccd4c35a8fcdcb67606294c81486f0a5f8e0baa
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