linux/drivers/media/i2c/cx25840
Maciej S. Szmigiero 4f1bdf0a75 media: cx25840: fix a possible divide by zero in set_fmt callback
If set_fmt callback is called with format->width or format->height set to
zero and HACTIVE_CNT or VACTIVE_CNT bits (respectively) in chip are zero
we will divide by zero later in this callback when we try to calculate
HSC or VSC values.

Fix this by explicitly rejecting these values.

Signed-off-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-12-11 13:04:33 -05:00
..
cx25840-audio.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
cx25840-core.c media: cx25840: fix a possible divide by zero in set_fmt callback 2017-12-11 13:04:33 -05:00
cx25840-core.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
cx25840-firmware.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
cx25840-ir.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
cx25840-vbi.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
Kconfig
Makefile