From: Fabio Estevam Date: Mon, 10 Aug 2015 17:11:41 +0000 (-0300) Subject: [media] mantis: Fix error handling in mantis_dma_init() X-Git-Tag: omap-for-v4.3/fixes-merge-window~73^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02387b5f25bdba668c7fe2618697bae24f973667;p=pandora-kernel.git [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 Signed-off-by: Fabio Estevam Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed