diff options
author | Christophe Jaillet <christophe.jaillet@wanadoo.fr> | 2017-06-09 22:27:12 +0300 |
---|---|---|
committer | CK Hu <ck.hu@mediatek.com> | 2017-06-27 12:34:53 +0300 |
commit | 4a3bfb5c24306aa129c0de32e5d1ffb553a60a7c (patch) | |
tree | e713f3d168aedaf5c94265cff2074572b1199936 /scripts/gdb/linux/proc.py | |
parent | afd89636f1846ec2c340de894dac103cd336fcee (diff) | |
download | linux-4a3bfb5c24306aa129c0de32e5d1ffb553a60a7c.tar.xz |
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>
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions