summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/sn9c102
diff options
context:
space:
mode:
authorJesper Juhl <jj@chaosbits.net>2011-01-13 19:05:47 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-05-20 09:29:56 -0300
commitdadefe3b710b706b607b51e901bbe6fb05cc515c (patch)
tree1f1ea18ea8fbbd407f6f21705bb0d50cbf60cc53 /drivers/media/video/sn9c102
parent488ebc4808162245be1f1365ea6854b4af6a1146 (diff)
[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>
Diffstat (limited to 'drivers/media/video/sn9c102')
0 files changed, 0 insertions, 0 deletions