[media] drivers/media/video/au0828/au0828-video.c: add missing video_device_release
authorJulia Lawall <Julia.Lawall@lip6.fr>
Sun, 22 Apr 2012 10:54:42 +0000 (07:54 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 2 May 2012 12:09:10 +0000 (09:09 -0300)
commitd63b21bfa8afbce0872fdb7718d822c5fd0878ea
tree1593b156b13cab9147e7eccdb6481864139a05bd
parentbcb2cf6e0bf033d79821c89e5ccb328bfbd44907
[media] drivers/media/video/au0828/au0828-video.c: add missing video_device_release

At the point of the call to video_register_device, both dev->vbi_dev and
dev->vdev have been allocated, and so should be freed on failure.  The
error-handling code is moved to the end of the function, to avoid code
duplication.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/au0828/au0828-video.c
This page took 0.032306 seconds and 5 git commands to generate.