diff options
author | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2018-03-22 09:11:20 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2018-03-22 09:35:22 -0400 |
commit | a23deac60a8683895543c8f335c36e475948716f (patch) | |
tree | 9468c5ab3ccb395847938cb124ee90b14288b021 /drivers/media/dvb-core/dvb_frontend.c | |
parent | 39adb4e739050dcdb74c3465d261de8de5f224b7 (diff) | |
download | blackbird-obmc-linux-a23deac60a8683895543c8f335c36e475948716f.tar.gz blackbird-obmc-linux-a23deac60a8683895543c8f335c36e475948716f.zip |
media: imx-media-utils: fix a warning
The logic at find_format() is a little bit confusing even for
humans, and it tricks static code analyzers:
drivers/staging/media/imx/imx-media-utils.c:259 find_format() error: buffer overflow 'array' 14 <= 20
Rewrite the logic in a way that it makes it clearer to understand,
while prevent static analyzers to produce false positives.
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/dvb-core/dvb_frontend.c')
0 files changed, 0 insertions, 0 deletions