linux/drivers/media
Guennadi Liakhovetski 67e86524b9 [media] V4L: mx2-camera: avoid overflowing 32-bits
In mx2_camera_try_fmt(), when applying i.MX25 restrictions to frame sizes,
the height is checked to be <= 0xffff. But later an integer multiplication
height * 4 * 0x3ffff is performed, which will overflow even for bounded
height values. This patch switches to using 64-bit multiplication and
division to avoid overflowing.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-05-15 16:14:01 -03:00
..
common [media] av7110: fix v4l2_compliance test issues 2012-05-14 15:04:11 -03:00
dvb [media] af9015: various small changes and clean-ups 2012-05-15 10:46:13 -03:00
radio [media] drivers/media: add missing __devexit_p() annotations 2012-05-15 07:53:51 -03:00
rc Merge remote-tracking branch 'linus/master' into staging/for_v3.5 2012-05-15 08:39:25 -03:00
video [media] V4L: mx2-camera: avoid overflowing 32-bits 2012-05-15 16:14:01 -03:00
Kconfig
Makefile
media-device.c [media] media: fix truncated entity specification 2011-12-20 09:31:50 -02:00
media-devnode.c Disintegrate and delete asm/system.h 2012-03-28 15:58:21 -07:00
media-entity.c [media] media: Add link_validate() op to check links to the sink pad 2012-05-14 08:44:11 -03:00