video: fbdev: fsl: Fix kernel crash when diu_ops is not implemented
authorWang Dongsheng <dongsheng.wang@freescale.com>
Thu, 3 Dec 2015 01:54:12 +0000 (09:54 +0800)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 9 Dec 2015 10:57:06 +0000 (12:57 +0200)
commitacfc1cc13fe5bc6d7a10afa624f1e560850ddad3
treefa36f51432baaa22020a1d8d0da4ea034db9d817
parent527e9316f8ec44bd53d90fb9f611fa7ffff52bb9
video: fbdev: fsl: Fix kernel crash when diu_ops is not implemented

If diu_ops is not implemented on platform, kernel will access a NULL
pointer. We need to check this pointer in DIU initialization.

Signed-off-by: Wang Dongsheng <dongsheng.wang@freescale.com>
Acked-by: Timur Tabi <timur@tabi.org>
Cc: stable@vger.kernel.org
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/fbdev/fsl-diu-fb.c