]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (11711): gspca - main: Fix a crash when no bandwidth available
authorJean-Francois Moine <moinejf@free.fr>
Tue, 21 Apr 2009 16:57:31 +0000 (13:57 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 16 Jun 2009 21:20:54 +0000 (18:20 -0300)
commit81889d659ad77c3ac114abc807807e8994e65dbf
treea6f3b9eebc7d339de0d543e9e9b3e53c01409db9
parenta5e78873a79e2fe5a6ef78d80be20e0b721cbcdb
V4L/DVB (11711): gspca - main: Fix a crash when no bandwidth available

When the bandwidth is not wide enough, the transfer endpoint may be set to
the one of the alternate setting 0. This one may be null and this causes a
divide by 0 oops.

Reported-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/gspca.c