mirror of
https://github.com/torvalds/linux.git
synced 2024-12-18 17:12:55 +00:00
dadefe3b71
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> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
stv06xx_hdcs.c | ||
stv06xx_hdcs.h | ||
stv06xx_pb0100.c | ||
stv06xx_pb0100.h | ||
stv06xx_sensor.h | ||
stv06xx_st6422.c | ||
stv06xx_st6422.h | ||
stv06xx_vv6410.c | ||
stv06xx_vv6410.h | ||
stv06xx.c | ||
stv06xx.h |