]> git.baikalelectronics.ru Git - kernel.git/commit
OMAPDSS: fix potential NULL pointer ref in OCP_ERR handling path
authorRob Clark <rob@ti.com>
Sun, 11 Dec 2011 20:02:27 +0000 (14:02 -0600)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 2 Jan 2012 06:51:26 +0000 (08:51 +0200)
commit0c043f1b8a73bddee8934b41f71dc89d3d6b9e55
treebe15778a94345ac75130f048abf000163355577b
parent604d14c22fcce0ada3a3b448503726a181348167
OMAPDSS: fix potential NULL pointer ref in OCP_ERR handling path

The dispc's error handler tries to disable all outputs when OCP_ERR
happens. However, the code doesn't check if there actually is a display
on each particular output, nor if there's a driver for the display. This
may lead to NULL pointer reference.

Signed-off-by: Rob Clark <rob@ti.com>
[tomi.valkeinen@ti.com: added patch description]
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/omap2/dss/dispc.c