]> 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)
commit2fc2eb136906fbd57757a46d615af47a377460f7
treef8045e472d9bd56d5c4f0bb11de25b194b4dd00a
parent5ae5f006eee3d4b952491fcdc822ee0dfaf27c02
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