]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit6a5b23e0624119108248ebdc26b3c91feb476c88
treead61d35b481f8f1fdeda923b683921ec47e51029
parent5bedc918b3f83d274ce42eaa973d465ca97930d7
[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