]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (12160): soc-camera: fix missing clean up on error path
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Wed, 24 Jun 2009 13:31:25 +0000 (10:31 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 5 Jul 2009 17:29:56 +0000 (14:29 -0300)
commit4cb5ecee4e6ead6eb5af35e296eac6a1dcd9c841
tree35dce135875712b8b3d200448b811a7a888d4119
parent5ca628bc49d376808a3f0f66d3b56f0c24867bd5
V4L/DVB (12160): soc-camera: fix missing clean up on error path

If soc_camera_init_user_formats() fails in soc_camera_probe(), we have to call
client's .remove() method to unregister the video device.

Reported-by: Kuninori Morimoto <morimoto.kuninori@renesas.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/soc_camera.c