commit | 919db5c3199cbd7cf503cdc42f3467a524d1f9ff | [log] [tgz] |
---|---|---|
author | Fabio Estevam <fabio.estevam@freescale.com> | Mon Aug 10 14:11:41 2015 -0300 |
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | Tue Aug 11 10:28:41 2015 -0300 |
tree | fc79359b0e784a7ca42ad3cb7982176a3dbe968d | |
parent | 8e8a6b23f115906678252190c8fcf4168cc60fd5 [diff] |
[media] mantis: Fix error handling in mantis_dma_init() Current code assigns 0 to variable 'err', which makes mantis_dma_init() to return success even if mantis_alloc_buffers() fails. Fix it by checking the return value from mantis_alloc_buffers() and propagating it in the case of error. Reported-by: RUC_Soft_Sec <zy900702@163.com> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>