aboutsummaryrefslogtreecommitdiff
path: root/lib/netdev-notifier-error-inject.c
diff options
context:
space:
mode:
authorChristophe Jaillet <[email protected]>2017-06-09 21:27:12 +0200
committerCK Hu <[email protected]>2017-06-27 17:34:53 +0800
commit4a3bfb5c24306aa129c0de32e5d1ffb553a60a7c (patch)
treee713f3d168aedaf5c94265cff2074572b1199936 /lib/netdev-notifier-error-inject.c
parentafd89636f1846ec2c340de894dac103cd336fcee (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 <[email protected]> Reviewed-by: Matthias Brugger <[email protected]> Signed-off-by: CK Hu <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions