]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB: gspca - main: Fix a crash in gspca_frame_add()
authorJean-François Moine <moinejf@free.fr>
Thu, 29 Jul 2010 05:46:02 +0000 (02:46 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 9 Aug 2010 02:43:01 +0000 (23:43 -0300)
commit46c603b1b043570a7fc2aa003083450f63fc8209
tree175a6f05a609ab852a257457bf41912be7ca9105
parentf0b08538b32a5fb9893a57d266ba4b8766e41bfa
V4L/DVB: gspca - main: Fix a crash in gspca_frame_add()

Some webcams as ov511 may find many times an end of image.
In this case, with the last patch in image concatenation
(commit 799b1bd41f398054d46fd35f73abd01c4009f6ca),
the image pointer was NULL and the system crashed in memcpy().

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/gspca.c