]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
staging: atomisp: silence an array overflow warning
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 14 Mar 2017 07:55:01 +0000 (10:55 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 Mar 2017 02:20:55 +0000 (11:20 +0900)
commit5d1ae279c235e5f353d0f11e6b4bed3079732327
tree72906c524019853d9f91078bd5aadcf7dd3dcb57
parent2bbe97830ae623a519291eece719ee74108571ff
staging: atomisp: silence an array overflow warning

Static checkers complain that we should check if "i" is in bounds
before we check if "var8[i]" is a NUL char.  This bug is harmless but
also easy to fix.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/media/atomisp/platform/intel-mid/atomisp_gmin_platform.c