]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit06f7d7931752ee1bd0903a38b1086c7ea5e10cdf
treef8045e472d9bd56d5c4f0bb11de25b194b4dd00a
parent74c0554ac79ef5aecfeb087bc08771363b221c99
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