]> 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)
commit6f837eca0e0c98f13ac9903b3822c5daca909c9c
tree4c15e0fc2f11ebd5fe5dee23575b87f7394566ed
parent929d925f2c8b935ed8b0e3d3f506c4b8171682ea
[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