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)
commit1f3f53ae5179ba7f24b4a429bc41773f1f4857ca
treeade70e034a61a37b9f9db68f31d3783be3883221
parent6ea9b31792745ee620509930dc9eead6e1c4be25
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