Skip to content
Commit 4dcd19bf authored by Arvind Yadav's avatar Arvind Yadav Committed by Bartlomiej Zolnierkiewicz
Browse files

video: fbdev: cobalt_lcdfb: Handle return NULL error from devm_ioremap



Here, If devm_ioremap will fail. It will return NULL.
Kernel can run into a NULL-pointer dereference.
This error check will avoid NULL pointer dereference.

Signed-off-by: default avatarArvind Yadav <arvind.yadav.cs@gmail.com>
Acked-by: default avatarYoichi Yuasa <yuasa@linux-mips.org>
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
parent 04f6152d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment