]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (13344): soc-camera: properly initialise the device object when reusing
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Mon, 9 Nov 2009 19:12:37 +0000 (16:12 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 26 Nov 2009 21:38:02 +0000 (19:38 -0200)
commit32a8c53aac7f5913e1fac0779179c5c7aafa6e3d
treecda19375ecf8e742b7aae674fd3692c09d6155a5
parent90b22fb12143028ee85e6a09871e58379b1410b3
V4L/DVB (13344): soc-camera: properly initialise the device object when reusing

Commit ef373189f62413803b7b816c972fc154c488cdc0 "fix use-after-free Oops,
resulting from a driver-core API change" fixed the Oops, but didn't correct
missing device object initialisation. This patch makes unloading and reloading
of soc-camera host- and client-drivers possible again.

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