]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (13953): firedtv: add missing NULL pointer check
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Sat, 26 Dec 2009 00:47:12 +0000 (21:47 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 26 Feb 2010 18:10:33 +0000 (15:10 -0300)
commitee8806c4def44958a7607252c298e1c577acb041
treec0f57376ab77aace63f1670710baaffa79d4b8f9
parent85d6dc9a64308d4436f7d7081b2d59e60ead12fa
V4L/DVB (13953): firedtv: add missing NULL pointer check

If there is ever going to be a FireDTV or FloppyDTV firmware which does
not provide a minimal ASCII textual descriptor for Model_Id --- or if
the descriptor is provided indirectly in a descriptor directory ---
the ieee1394 variant of the device probe of firedtv would dereference a
NULL pointer.  The firewire variant of firedtv's device probe is not
affected.

The fix makes sure that such an unexpected firmware is safely recognized
by fdtv_alloc as an unknown firmware.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/firewire/firedtv-1394.c