[media] V4L: fix incorrect refcounting
authorHans Verkuil <hans.verkuil@cisco.com>
Thu, 19 Apr 2012 15:27:56 +0000 (12:27 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 19 Apr 2012 20:23:38 +0000 (17:23 -0300)
commitee71e7b3ae1780e4475aa5dd980dd99c0309079b
tree4c15e0fc2f11ebd5fe5dee23575b87f7394566ed
parentaa6d5f29534a6d1459f9768c591a7a72aadc5941
[media] V4L: fix incorrect refcounting

Both radio-keene and dsbr100 did one v4l2_device_get too many. Thus the refcount
never became 0 and that causes a memory leak.

Also updated the V4L2 framework documentation accordingly.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Documentation/video4linux/v4l2-framework.txt
drivers/media/radio/dsbr100.c
drivers/media/radio/radio-keene.c