]> git.baikalelectronics.ru Git - kernel.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)
commit5665514704cc5910132ddb47a29b353171de0e32
tree72906c524019853d9f91078bd5aadcf7dd3dcb57
parent30486ec3c087c13655c5a52cd15b1ec0f1c2a6f4
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