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)
commit64ff9ba5f1d771e8405ec766c31f6b32c9708285
treecda19375ecf8e742b7aae674fd3692c09d6155a5
parentf39c1ab3c3878f1a50ca129e55d17ae63215fcbe
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