linux/drivers/media/pci/mantis
Fabio Estevam 919db5c319 [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>
2015-08-11 10:28:41 -03:00
..
hopper_cards.c [media] mantis: cleanup CodingStyle issues due to last commit 2015-06-10 12:06:34 -03:00
hopper_vp3028.c [media] mantis: fix sparse warnings 2014-09-03 09:38:44 -03:00
hopper_vp3028.h
Kconfig
Makefile
mantis_ca.c [media] mantis: cleanup NULL checking in mantis_ca_exit() 2012-12-27 20:25:38 -02:00
mantis_ca.h
mantis_cards.c [media] mantis: cleanup CodingStyle issues due to last commit 2015-06-10 12:06:34 -03:00
mantis_common.h [media] mantis: add remote control support 2015-06-10 11:58:24 -03:00
mantis_core.c [media] media: pci: mantis: mantis_core.c: Remove unused function 2015-01-27 10:10:06 -02:00
mantis_core.h
mantis_dma.c [media] mantis: Fix error handling in mantis_dma_init() 2015-08-11 10:28:41 -03:00
mantis_dma.h
mantis_dvb.c Drivers: media: remove __dev* attributes. 2013-01-03 15:57:02 -08:00
mantis_dvb.h
mantis_evm.c
mantis_hif.c
mantis_hif.h
mantis_i2c.c [media] mantis: cleanup a warning 2015-06-18 14:32:21 -03:00
mantis_i2c.h
mantis_input.c [media] mantis: cleanup CodingStyle issues due to last commit 2015-06-10 12:06:34 -03:00
mantis_input.h [media] mantis: cleanup CodingStyle issues due to last commit 2015-06-10 12:06:34 -03:00
mantis_ioc.c
mantis_ioc.h
mantis_link.h
mantis_pci.c [media] pci: mantis: Remove redundant pci_set_drvdata 2013-10-17 06:01:32 -03:00
mantis_pci.h
mantis_pcmcia.c [media] mantis: add remote control support 2015-06-10 11:58:24 -03:00
mantis_reg.h
mantis_uart.c [media] mantis: cleanup CodingStyle issues due to last commit 2015-06-10 12:06:34 -03:00
mantis_uart.h
mantis_vp1033.c [media] mantis: fix sparse warnings 2014-09-03 09:38:44 -03:00
mantis_vp1033.h
mantis_vp1034.c [media] dvb: Get rid of typedev usage for enums 2015-06-09 17:47:35 -03:00
mantis_vp1034.h [media] dvb: Get rid of typedev usage for enums 2015-06-09 17:47:35 -03:00
mantis_vp1041.c [media] mantis: fix sparse warnings 2014-09-03 09:38:44 -03:00
mantis_vp1041.h
mantis_vp2033.c [media] mantis: fix sparse warnings 2014-09-03 09:38:44 -03:00
mantis_vp2033.h
mantis_vp2040.c [media] mantis: fix sparse warnings 2014-09-03 09:38:44 -03:00
mantis_vp2040.h
mantis_vp3028.c
mantis_vp3028.h
mantis_vp3030.c [media] mantis: fix sparse warnings 2014-09-03 09:38:44 -03:00
mantis_vp3030.h