https://github.com/torvalds/linux
Revision 02387b5f25bdba668c7fe2618697bae24f973667 authored by Fabio Estevam on 10 August 2015, 17:11:41 UTC, committed by Mauro Carvalho Chehab on 19 August 2015, 10:04:55 UTC
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>
1 parent 72c5b7b
History
Tip revision: 02387b5f25bdba668c7fe2618697bae24f973667 authored by Fabio Estevam on 10 August 2015, 17:11:41 UTC
[media] mantis: Fix error handling in mantis_dma_init()
Tip revision: 02387b5
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 1.2 KB
.mailmap -rw-r--r-- 4.9 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 94.7 KB
Kbuild -rw-r--r-- 2.1 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 303.5 KB
Makefile -rw-r--r-- 53.1 KB
README -rw-r--r-- 18.2 KB
REPORTING-BUGS -rw-r--r-- 7.3 KB

README

back to top