]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
[media] au0828: fix disconnect sequence
authorHans Verkuil <hans.verkuil@cisco.com>
Mon, 11 Mar 2013 13:16:45 +0000 (10:16 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 25 Mar 2013 18:10:30 +0000 (15:10 -0300)
commit823beb7e22d04ed545e7adfcd5ec8db934218872
tree2a24866bde29638428ebf82d2945ef7c4ce0e0dd
parentdc6d2a2f66a156ea90924abde553560481b6b57b
[media] au0828: fix disconnect sequence

The driver crashed when the device was disconnected while an application
still had a device node open. Fixed by using the release() callback of struct
v4l2_device.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Reviewed-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/au0828/au0828-core.c
drivers/media/usb/au0828/au0828-video.c