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: NArvind Yadav <arvind.yadav.cs@gmail.com> Acked-by: NYoichi Yuasa <yuasa@linux-mips.org> Signed-off-by: NBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Showing
想要评论请 注册 或 登录