]> git.baikalelectronics.ru Git - kernel.git/commit
OMAPDSS: APPLY: fix NULL pointer deref when mgr is not set
authorRob Clark <rob@ti.com>
Sat, 17 Dec 2011 19:28:52 +0000 (13:28 -0600)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 2 Jan 2012 06:51:28 +0000 (08:51 +0200)
commit13234ab9dc578fd6e9415e5681398f578b22265c
treeade70e034a61a37b9f9db68f31d3783be3883221
parent918a1dd54575699ba821cf6429f611205690d2b0
OMAPDSS: APPLY: fix NULL pointer deref when mgr is not set

extra_info_update_ongoing() goes through all overlays, but doesn't check
if the overlay is connected to a manager. This leads to a crash whenever
an overlay has been detached.

Add a check to skip the non-connected overlays.

Reported-by: Rob Clark <rob@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/omap2/dss/apply.c