From: Guennadi Liakhovetski Date: Sat, 3 May 2014 16:05:08 +0000 (-0300) Subject: [media] V4L: soc-camera: explicitly free allocated managed memory on error X-Git-Tag: omap-for-v3.17/fixes-against-rc2~155^2~442 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=057c2a2ef576a21968e838194b8b9d3b6b106769;p=pandora-kernel.git [media] V4L: soc-camera: explicitly free allocated managed memory on error devm_kzalloc() allocations are freed when the device is unbound. But if a certain path fails and the allocated memory cannot be used anyway it is better to free it explicitly immediately. This patch does exactly this if asynchronous group probing in scan_async_group() fails after memory has been allocated. Signed-off-by: Guennadi Liakhovetski Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed