Commit 4942dccb authored by Wang Dongsheng's avatar Wang Dongsheng Committed by Ben Hutchings
Browse files

video: fbdev: fsl: Fix kernel crash when diu_ops is not implemented



commit acfc1cc1 upstream.

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: default avatarWang Dongsheng <dongsheng.wang@freescale.com>
Acked-by: default avatarTimur Tabi <timur@tabi.org>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
[bwh: Backported to 3.2: adjust filename]
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
parent f41bb6ed
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment