commit | 4a3bfb5c24306aa129c0de32e5d1ffb553a60a7c | [log] [tgz] |
---|---|---|
author | Christophe Jaillet <christophe.jaillet@wanadoo.fr> | Fri Jun 09 21:27:12 2017 +0200 |
committer | CK Hu <ck.hu@mediatek.com> | Tue Jun 27 17:34:53 2017 +0800 |
tree | e713f3d168aedaf5c94265cff2074572b1199936 | |
parent | afd89636f1846ec2c340de894dac103cd336fcee [diff] |
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: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com> Signed-off-by: CK Hu <ck.hu@mediatek.com>