From: Sylwester Nawrocki Date: Thu, 8 May 2014 17:35:15 +0000 (-0300) Subject: [media] exynos4-is: Free FIMC-IS CPU memory only when allocated X-Git-Tag: omap-for-v3.16/fixes-against-rc1~25^2~88 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=404a90abc60f60df2757cb272660e003d326881f;p=pandora-kernel.git [media] exynos4-is: Free FIMC-IS CPU memory only when allocated Ensure dma_free_coherent() is not called with incorrect arguments and only when the memory was actually allocated. This will prevent possible crashes on error paths of the top level media device driver, when fimc-is device gets unregistered and its driver detached. Signed-off-by: Sylwester Nawrocki Acked-by: Kyungmin Park Cc: stable@vger.kernel.org # for v3.15 Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed