linux/drivers/media/video/gspca/stv06xx
Jesper Juhl dadefe3b71 [media] gspca/stv06xx_pb0100: Don't potentially deref NULL in pb0100_start()
usb_altnum_to_altsetting() may return NULL. If it does we'll dereference a
NULL pointer in
drivers/media/video/gspca/stv06xx/stv06xx_pb0100.c::pb0100_start().
As far as I can tell there's not really anything more sensible than
-ENODEV that we can return in that situation, but I'm not at all intimate
with this code so I'd like a bit of review/comments on this before it's
applied.
Anyway, here's a proposed patch.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Cc: Jean-Francois Moine <moinejf@free.fr>
Cc: Hans de Goede <hdegoede@redhat.com>
Cc: Erik Andren <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2011-05-20 09:29:56 -03:00
..
Kconfig
Makefile V4L/DVB (12082): gspca_stv06xx: Add support for st6422 bridge and sensor 2009-06-23 03:13:11 -03:00
stv06xx.c [media] gspca - jeilinj / stv06xx: Fix some warnings 2011-03-22 04:54:48 -03:00
stv06xx.h [media] gspca: Fix coding style issues 2010-10-21 14:50:06 -02:00
stv06xx_hdcs.c Fix common misspellings 2011-03-31 11:26:23 -03:00
stv06xx_hdcs.h [media] gspca-stv06xx: support bandwidth changing 2010-12-29 08:16:40 -02:00
stv06xx_pb0100.c [media] gspca/stv06xx_pb0100: Don't potentially deref NULL in pb0100_start() 2011-05-20 09:29:56 -03:00
stv06xx_pb0100.h [media] gspca-stv06xx: support bandwidth changing 2010-12-29 08:16:40 -02:00
stv06xx_sensor.h [media] gspca-stv06xx: support bandwidth changing 2010-12-29 08:16:40 -02:00
stv06xx_st6422.c [media] gspca - stv06xx/st6422: Use the new video control mechanism 2010-12-29 08:17:21 -02:00
stv06xx_st6422.h [media] gspca - stv06xx/st6422: Use the new video control mechanism 2010-12-29 08:17:21 -02:00
stv06xx_vv6410.c [media] gspca: Fix coding style issues 2010-10-21 14:50:06 -02:00
stv06xx_vv6410.h [media] gspca-stv06xx: support bandwidth changing 2010-12-29 08:16:40 -02:00