git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72c5b7b
)
[media] mantis: Fix error handling in mantis_dma_init()
author
Fabio Estevam
<fabio.estevam@freescale.com>
Mon, 10 Aug 2015 17:11:41 +0000
(14:11 -0300)
committer
Mauro Carvalho Chehab
<mchehab@osg.samsung.com>
Wed, 19 Aug 2015 10:04:55 +0000
(07:04 -0300)
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>
No differences found