]> git.baikalelectronics.ru Git - kernel.git/commit
[media] V4L: soc_camera_platform: do not leave dangling invalid pointers
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Mon, 5 Sep 2011 16:50:27 +0000 (13:50 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 3 Nov 2011 20:28:45 +0000 (18:28 -0200)
commitb39b5195e6a2783a814a5ff2fd520a8975dcea68
tree997c654039059454731f7b5466d2dc2a088d589b
parentfd906b621066e72ce730bbd6515b36662bfa4abe
[media] V4L: soc_camera_platform: do not leave dangling invalid pointers

The life-time of soc-camera device objects can be longer, than the
time, it is attached to a client driver, therefore all references to
the driver own data have to be cleared, when the driver is detached.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/soc_camera_platform.c