[media] ov772x: Fix memory leak in probe error path
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Wed, 18 Jul 2012 13:58:18 +0000 (10:58 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 15 Aug 2012 20:05:02 +0000 (17:05 -0300)
commitedff996eb942ce5595e9b60a0e06586dcc41b19b
tree3db011ebc7a99c04a1e94b722c9a393ba61ea3f6
parent4bbc6d52e61a8a9c19fcc859c4acab89cb8cd4e5
[media] ov772x: Fix memory leak in probe error path

The control handler isn't freed if its initialization fails. Fix it.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/i2c/soc_camera/ov772x.c