staging: fbtft: array underflow in fbtft_request_gpios_match()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 18 Jul 2017 09:30:10 +0000 (12:30 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 29 Jul 2017 00:08:16 +0000 (17:08 -0700)
commit0d0d4d21a09981e65b2bd386c999e8c0ecc6444e
treedc459922ebe8cd9bfa55c9bec874453806baa462
parentc2d79b4b6dcf7b92003b129a3df90f89e878c8c4
staging: fbtft: array underflow in fbtft_request_gpios_match()

"val" can be negative, so we'd write before the start of the
par->gpio.db[] array.

Fixes: c296d5f9957c ("staging: fbtft: core support")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fbtft/fbtft-core.c