V4L/DVB (13132): fix use-after-free Oops, resulting from a driver-core API change
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Mon, 5 Oct 2009 15:54:54 +0000 (12:54 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 7 Nov 2009 14:55:07 +0000 (12:55 -0200)
commit76823b791d867c2ab563c237f188d0cbb4ced6e1
tree8dd614f79437063fda0f4860caf61255506f880a
parent07bc46e6671b4533a5e56607ddec9de9079c1844
V4L/DVB (13132): fix use-after-free Oops, resulting from a driver-core API change

Commit b4028437876866aba4747a655ede00f892089e14 has broken again re-use of
device objects across device_register() / device_unregister() cycles. Fix
soc-camera by nullifying the struct after device_unregister().

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