diff options
author | 2015-08-10 14:11:41 -0300 | |
---|---|---|
committer | 2015-08-19 07:04:55 -0300 | |
commit | 02387b5f25bdba668c7fe2618697bae24f973667 (patch) | |
tree | b1eaac45b20e76cf8d1b0714df25a1f48f91ae43 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | Revert "[media] rc: rc-ir-raw: Add scancode encoder callback" (diff) | |
download | wireguard-linux-02387b5f25bdba668c7fe2618697bae24f973667.tar.xz wireguard-linux-02387b5f25bdba668c7fe2618697bae24f973667.zip |
[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 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions