]> git.baikalelectronics.ru Git - kernel.git/commit
OMAP: DSS2: check for manager when enabling display
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 23 Jun 2011 13:38:21 +0000 (16:38 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 14 Sep 2011 15:08:23 +0000 (18:08 +0300)
commit7472c8e9aad8b5718ac7252f25af3d03fc7efb92
tree2c8ca4e0820392647fe03137be62b91f08def0ac
parent0784b8d7773e74d8aa5225e9467b5962528984a3
OMAP: DSS2: check for manager when enabling display

None of the DSS interface drivers check if an overlay manager is
connected to the display when the display is being enabled. This leads
to null pointer crash if the display has no manager.

This patch checks for the manager and returns an error if it is null.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/omap2/dss/dpi.c
drivers/video/omap2/dss/dsi.c
drivers/video/omap2/dss/hdmi.c
drivers/video/omap2/dss/rfbi.c
drivers/video/omap2/dss/sdi.c