video: omapdss: Fix potential null pointer dereference
authorSachin Kamat <sachin.kamat@linaro.org>
Fri, 30 May 2014 10:26:34 +0000 (15:56 +0530)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 26 Jun 2014 11:40:15 +0000 (14:40 +0300)
kmalloc can return null. Add a check to avoid potential null
pointer dereference error when the pointer is accessed later.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/fbdev/omap2/dss/omapdss-boot-init.c