]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit44ffea124448c25c2209fe503cde5d4f17d0d2f4
treef8045e472d9bd56d5c4f0bb11de25b194b4dd00a
parentd1ae871dcdb014a074f0ccc4827b6ab736428dae
video: omapdss: Fix potential null pointer dereference

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