[media] pxa_camera: fix the buffer free path
authorRobert Jarzmik <robert.jarzmik@free.fr>
Sun, 6 Sep 2015 11:42:10 +0000 (08:42 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 3 Mar 2016 10:17:12 +0000 (07:17 -0300)
commit8f4895f2bd83cbf5afae25f3b35ea0f5d46d48c6
tree7797ae8b2a79217bdbd14cbeca6acc47dcf20733
parent2abd1f43c242e79c9db1050a3344cc2965eb77e3
[media] pxa_camera: fix the buffer free path

Fix the error path where the video buffer wasn't allocated nor
mapped. In this case, in the driver free path don't try to unmap memory
which was not mapped in the first place.

Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/soc_camera/pxa_camera.c