From: Jesper Juhl Date: Thu, 13 Jan 2011 22:05:47 +0000 (-0300) Subject: [media] gspca/stv06xx_pb0100: Don't potentially deref NULL in pb0100_start() X-Git-Tag: v3.0-rc1~322^2~114 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dadefe3b710b706b607b51e901bbe6fb05cc515c;p=pandora-kernel.git [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 Cc: Jean-Francois Moine Cc: Hans de Goede Cc: Erik Andren Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed