OSDN Git Service

[media] dvb core: only start media entity if not NULL
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 23 Feb 2015 12:41:17 +0000 (09:41 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 23 Feb 2015 19:10:54 +0000 (16:10 -0300)
commit8a26a258bdb82db241cdc35f332f88dd67bdb9c9
treead61d35b481f8f1fdeda923b683921ec47e51029
parent99a85b901eb54f62ff0c3fd6eb56e60b7b9f15c8
[media] dvb core: only start media entity if not NULL

The logic there tries to start the media entity even if it
doesn't exist, causing this bug:

[  314.356162] BUG: unable to handle kernel NULL pointer dereference at 0000000000000010
[  314.356202] IP: [<ffffffffa02ef74c>] media_entity_pipeline_start+0x1c/0x390 [media]

Reported-by: Gert-Jan van der Stroom <gjstroom@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/dvb-core/dvb_frontend.c