diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2015-08-10 14:11:41 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-08-11 10:28:41 -0300 |
commit | 919db5c3199cbd7cf503cdc42f3467a524d1f9ff (patch) | |
tree | fc79359b0e784a7ca42ad3cb7982176a3dbe968d /samples/Kconfig | |
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>
Diffstat (limited to 'samples/Kconfig')
0 files changed, 0 insertions, 0 deletions