]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commita61f3e6e750b913739961c42a7ac2e406449d65f
tree4c15e0fc2f11ebd5fe5dee23575b87f7394566ed
parentcad4c8c867ed058ed3b5a1a4354e3b34c78a2afc
[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