Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

V4L/DVB (7197): bttv: Fix overlay divide error

The initial work to convert the bttv driver to V4L2 "Partial conversion
from V4L1 to V4L2" (e84619b17440ccca4e4db7583d126c4189b987e5), missed
the line which set the appropriate overlay crop structure in the newly
allocated bttv_buffer. This then causes a divide error in the
bttv_calc_geo function.

Signed-off-by: Robert Fitzsimons <robfitz@273k.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

authored by

Robert Fitzsimons and committed by
Mauro Carvalho Chehab
7c018804 c9fe1d6b

+1
+1
drivers/media/video/bt8xx/bttv-driver.c
··· 2760 2760 if (on) { 2761 2761 fh->ov.tvnorm = btv->tvnorm; 2762 2762 new = videobuf_pci_alloc(sizeof(*new)); 2763 + new->crop = btv->crop[!!fh->do_crop].rect; 2763 2764 bttv_overlay_risc(btv, &fh->ov, fh->ovfmt, new); 2764 2765 } else { 2765 2766 new = NULL;