Skip to content
Commit 4a3bfb5c authored by Christophe Jaillet's avatar Christophe Jaillet Committed by CK Hu
Browse files

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: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: default avatarMatthias Brugger <matthias.bgg@gmail.com>
Signed-off-by: default avatarCK Hu <ck.hu@mediatek.com>
parent afd89636
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment