OpenCloudOS-Kernel/drivers/media/video/pwc
Hans de Goede 9a7b2d1f0e [media] pwc: better usb disconnect handling
Unplugging a pwc cam while an app has the /dev/video# node open leads
to an oops in pwc_video_close when the app closes the node, because
the disconnect handler has free-ed the pdev struct pwc_video_close
tries to use. Instead of adding some sort of bandaid for this.
fix it properly using the v4l2 core's new(ish) behavior of keeping the
v4l2_dev structure around until both unregister has been called, and
all file handles referring  to it have been closed:

Embed the v4l2_dev structure in the pdev structure and define a v4l2 dev
release callback releasing the pdev structure (and thus also the embedded
v4l2 dev structure.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Cc: stable@kernel.org
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2011-06-21 13:31:12 -03:00
..
Kconfig V4L/DVB: pwc: fully convert driver to V4L2 2010-10-21 01:05:57 -02:00
Makefile
philips.txt tree-wide: Assorted spelling fixes 2010-02-09 11:13:56 +01:00
pwc-ctrl.c [media] pwc: better usb disconnect handling 2011-06-21 13:31:12 -03:00
pwc-dec1.c
pwc-dec1.h
pwc-dec23.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
pwc-dec23.h
pwc-if.c [media] pwc: better usb disconnect handling 2011-06-21 13:31:12 -03:00
pwc-ioctl.h v4l-dvb: remove legacy checks to allow support for kernels < 2.6.10 2008-07-20 07:17:52 -03:00
pwc-kiara.c
pwc-kiara.h
pwc-misc.c V4L/DVB: pwc: fully convert driver to V4L2 2010-10-21 01:05:57 -02:00
pwc-nala.h
pwc-timon.c
pwc-timon.h
pwc-uncompress.c V4L/DVB: pwc: fully convert driver to V4L2 2010-10-21 01:05:57 -02:00
pwc-uncompress.h
pwc-v4l.c [media] pwc: Handle V4L2_CTRL_FLAG_NEXT_CTRL in queryctrl 2011-05-20 09:28:27 -03:00
pwc.h [media] pwc: better usb disconnect handling 2011-06-21 13:31:12 -03:00