[media] VPU: mediatek: Fix return value in case of error
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Fri, 23 Sep 2016 21:19:01 +0000 (18:19 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 24 Oct 2016 20:11:57 +0000 (18:11 -0200)
commit8a5d2acee6fa9ec5997335cc3ebdd47c7524d6d2
treec4d9c3844d088d6c873d211f9386bbac5c79bbc9
parentc771f42fed7f21f510793302687884b424cd9f54
[media] VPU: mediatek: Fix return value in case of error

If 'dma_alloc_coherent()' returns NULL, 'vpu_alloc_ext_mem()' will
return 0 which means success.
Return -ENOMEM instead.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/mtk-vpu/mtk_vpu.c