]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commite9ed3a1af69750aa3cf08b791dbe791df945b9ee
tree7797ae8b2a79217bdbd14cbeca6acc47dcf20733
parent831452f6d54684b94ae187ed094df52b76e4d6b8
[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