OpenCloudOS-Kernel/drivers/media/platform/vivid
Gustavo A. R. Silva fc49d3d7dc media: platform: vivid-cec: use 64-bit arithmetic instead of 32-bit
Add suffix ULL to constant 10 in order to give the compiler complete
information about the proper arithmetic to use. Notice that this
constant is used in a context that expects an expression of type
u64 (64 bits, unsigned).

The expression len * 10 * CEC_TIM_DATA_BIT_TOTAL is currently being
evaluated using 32-bit arithmetic.

Also, remove unnecessary parentheses and add a code comment to make it
clear what is the reason of the code change.

Addresses-Coverity-ID: 1454996 ("Unintentional integer overflow")

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2018-02-26 08:10:27 -05:00
..
Kconfig [media] cec: select CEC_CORE instead of depend on it 2017-06-04 15:23:33 -03:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
vivid-cec.c media: platform: vivid-cec: use 64-bit arithmetic instead of 32-bit 2018-02-26 08:10:27 -05:00
vivid-cec.h media: vivid: add SPDX license info 2018-02-14 13:14:31 -05:00
vivid-core.c media: vivid: add SPDX license info 2018-02-14 13:14:31 -05:00
vivid-core.h media: vivid: add SPDX license info 2018-02-14 13:14:31 -05:00
vivid-ctrls.c media: vivid: fix incorrect capabilities for radio 2018-02-26 08:00:53 -05:00
vivid-ctrls.h media: vivid: add SPDX license info 2018-02-14 13:14:31 -05:00
vivid-kthread-cap.c media: vivid: add SPDX license info 2018-02-14 13:14:31 -05:00
vivid-kthread-cap.h media: vivid: add SPDX license info 2018-02-14 13:14:31 -05:00
vivid-kthread-out.c media: vivid: add SPDX license info 2018-02-14 13:14:31 -05:00
vivid-kthread-out.h media: vivid: add SPDX license info 2018-02-14 13:14:31 -05:00
vivid-osd.c media: vivid: add SPDX license info 2018-02-14 13:14:31 -05:00
vivid-osd.h media: vivid: add SPDX license info 2018-02-14 13:14:31 -05:00
vivid-radio-common.c media: vivid: add SPDX license info 2018-02-14 13:14:31 -05:00
vivid-radio-common.h media: vivid: add SPDX license info 2018-02-14 13:14:31 -05:00
vivid-radio-rx.c media: vivid: add SPDX license info 2018-02-14 13:14:31 -05:00
vivid-radio-rx.h media: vivid: add SPDX license info 2018-02-14 13:14:31 -05:00
vivid-radio-tx.c media: vivid: add SPDX license info 2018-02-14 13:14:31 -05:00
vivid-radio-tx.h media: vivid: add SPDX license info 2018-02-14 13:14:31 -05:00
vivid-rds-gen.c media: vivid: add SPDX license info 2018-02-14 13:14:31 -05:00
vivid-rds-gen.h media: vivid: add SPDX license info 2018-02-14 13:14:31 -05:00
vivid-sdr-cap.c media: vivid: add SPDX license info 2018-02-14 13:14:31 -05:00
vivid-sdr-cap.h media: vivid: add SPDX license info 2018-02-14 13:14:31 -05:00
vivid-vbi-cap.c media: vivid: add SPDX license info 2018-02-14 13:14:31 -05:00
vivid-vbi-cap.h media: vivid: add SPDX license info 2018-02-14 13:14:31 -05:00
vivid-vbi-gen.c media: vivid: add SPDX license info 2018-02-14 13:14:31 -05:00
vivid-vbi-gen.h media: vivid: add SPDX license info 2018-02-14 13:14:31 -05:00
vivid-vbi-out.c media: vivid: add SPDX license info 2018-02-14 13:14:31 -05:00
vivid-vbi-out.h media: vivid: add SPDX license info 2018-02-14 13:14:31 -05:00
vivid-vid-cap.c media: vivid: add SPDX license info 2018-02-14 13:14:31 -05:00
vivid-vid-cap.h media: vivid: add SPDX license info 2018-02-14 13:14:31 -05:00
vivid-vid-common.c media: vivid: add SPDX license info 2018-02-14 13:14:31 -05:00
vivid-vid-common.h media: vivid: add SPDX license info 2018-02-14 13:14:31 -05:00
vivid-vid-out.c media: vivid: add SPDX license info 2018-02-14 13:14:31 -05:00
vivid-vid-out.h media: vivid: add SPDX license info 2018-02-14 13:14:31 -05:00