drm/mediatek: check for memory allocation failure
If 'devm_kmalloc_array' returns NULL, we should return -ENOMEM as already done a few lines above instead of deferencing a NULL pointer a few lines below. Signed-off-by: NChristophe JAILLET <christophe.jaillet@wanadoo.fr> Reviewed-by: NMatthias Brugger <matthias.bgg@gmail.com> Signed-off-by: NCK Hu <ck.hu@mediatek.com>
Showing
想要评论请 注册 或 登录