From: Maurizio Lombardi Date: Fri, 27 Jun 2014 09:28:31 +0000 (-0300) Subject: [media] s5p: fix error code path when failing to allocate DMA memory X-Git-Tag: omap-for-v3.17/fixes-against-rc2~155^2~274 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69b9fe22b19b31d9de96d4a181f7206fd29ab743;p=pandora-kernel.git [media] s5p: fix error code path when failing to allocate DMA memory In the s5p_mfc_alloc_firmware() function there are some mistakes where the code checks whether the DMA memory is properly allocated or not. First of all dma_alloc_coherent() returns NULL in case of error. The code also checked two times fw_virt_addr, ignoring the bank2_virt pointer. Signed-off-by: Maurizio Lombardi Signed-off-by: Kamil Debski Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed