media: bttv: Fixed oops error when capturing at yuv410p
authorSamuel Williams <sam8641@gmail.com>
Sun, 1 Apr 2018 15:00:27 +0000 (11:00 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 4 May 2018 19:27:31 +0000 (15:27 -0400)
commit6f7e780b7e93aed10fe5d32f386add042644cb0b
tree92852828b7428ff680a0ed0f378561a95f4f930a
parenta03e457bb1eef73c811ea2b3d5b57cef559ae8e0
media: bttv: Fixed oops error when capturing at yuv410p

When capturing at yuv410p, sg_next was called too many times when chroma is
false, eventually returning NULL. This patch does fix this for my hardware.

Signed-off-by: Samuel Williams <sam8641@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/pci/bt8xx/bttv-risc.c